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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d7fe02f) | patch
Refactor some code for ALTER TABLE SET LOGGED/UNLOGGED in tablecmds.c
2024年8月29日 06:31:30 +0000 (15:31 +0900)
2024年8月29日 06:31:30 +0000 (15:31 +0900)
commit 9f87da1cffda0e07ff3babcfa84abe9e849ccd95
Refactor some code for ALTER TABLE SET LOGGED/UNLOGGED in tablecmds.c

Both sub-commands use the same routine to switch the relpersistence of a
relation, duplicated the same checks, and used a style inconsistent with
access methods and tablespaces.

SET LOGEED/UNLOGGED is refactored to avoid any duplication, setting the
reason why a relation rewrite happens within ATPrepChangePersistence().
This shaves some code.

Discussion: https://postgr.es/m/ZiiyGFTBNkqcMQi_@paquier.xyz
src/backend/commands/tablecmds.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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