git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8e4b332) | patch
Add macro RelationIsPermanent() to report relation permanence
2021年3月23日 00:22:48 +0000 (20:22 -0400)
2021年3月23日 00:23:52 +0000 (20:23 -0400)
commit 95d77149c53545a74e0c84717cf8f925b8f6d632
Add macro RelationIsPermanent() to report relation permanence

Previously, to check relation permanence, the Relation's Form_pg_class
structure member relpersistence was compared to the value
RELPERSISTENCE_PERMANENT ("p"). This commit adds the macro
RelationIsPermanent() and is used in appropirate places to simplify the
code. This matches other RelationIs* macros.

This macro will be used in more places in future cluster file encryption
patches.

Discussion: https://postgr.es/m/20210318153134.GH20766@tamriel.snowman.net
src/backend/access/gist/gistutil.c diff | blob | blame | history
src/backend/access/heap/heapam_handler.c diff | blob | blame | history
src/backend/catalog/pg_publication.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/optimizer/util/plancat.c diff | blob | blame | history
src/backend/utils/cache/relcache.c diff | blob | blame | history
src/include/utils/rel.h diff | blob | blame | history
src/include/utils/snapmgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /