A view definition with GRAPH_TABLE depends upon the property graph it references as well as the properties and labels referenced in it. We recorded the dependency on the property graph, but did not record dependency on labels and properties. This allowed properties or labels referenced by a view to be dropped, resulting in a cache lookup error when such a view was accessed. Fix this bug by handling GraphPropertyRef and GraphLabelRef in find_expr_references_walker(). The dependency on the data type of property does not need to be recorded separately as it is recorded indirectly via a dependency on the property graph property itself. Note that a property or a label associated with individual elements can still be dropped as long as there are other elements that are associated with that property or label, since they do not lead to dropping the property or the label from the property graph altogether. Reported-by: Man Zeng <zengman@halodbtech.com> Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Reviewed-by: Junwang Zhao <zhjwpku@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/tencent_43D9888041FA4FDE498C7BF1%40qq.com |
2 days ago | |
|---|---|---|
| .github | ci: Improve ccache handling | 2 days ago |
| config | Update config.guess and config.sub | 2 months ago |
| contrib | pg_surgery: Fix off-by-one bug with heap offset | 5 days ago |
| doc | doc: Expand on proper use of refint. | 2 days ago |
| src | Record dependencies on graph labels and properties | 2 days ago |
| .dir-locals.el |
…
|
|
| .editorconfig | Update .editorconfig and .gitattributes for postgresql.conf.sample. | 7 months ago |
| .git-blame-ignore-revs | Add previous commit to .git-blame-ignore-revs. | 6 days ago |
| .gitattributes | Update .editorconfig and .gitattributes for postgresql.conf.sample. | 7 months ago |
| .gitignore | Update top-level .gitignore. | 4 years ago |
| .mailmap | Add a Git .mailmap file | 2 years ago |
| COPYRIGHT | Update copyright for 2026 | 5 months ago |
| GNUmakefile.in | Allow selecting the git revision to be packaged by "make dist". | 2 years ago |
| HISTORY |
…
|
|
| Makefile | Restore AIX support. | 4 months ago |
| README.md | Revise the style of a paragraph in README.md. | 2 years ago |
| aclocal.m4 | autoconf: Move export_dynamic determination to configure | 4 years ago |
| configure | Stamp 19beta1. | 1 week ago |
| configure.ac | Stamp 19beta1. | 1 week ago |
| meson.build | Stamp 19beta1. | 1 week ago |
| meson_options.txt | Revert "Add built-in fuzzing harnesses for security testing." | 2 months ago |
README.md
PostgreSQL Database Management System
This directory contains the source code distribution of the PostgreSQL database management system.
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
Copyright and license information can be found in the file COPYRIGHT.
General documentation about this version of PostgreSQL can be found at https://www.postgresql.org/docs/devel/. In particular, information about building PostgreSQL from the source code can be found at https://www.postgresql.org/docs/devel/installation.html.
The latest version of this software, and related software, may be obtained at https://www.postgresql.org/download/. For more information look at our web site located at https://www.postgresql.org/.