aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/buf_init.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-08-29 15:31:30 +0900
committerMichael Paquier <michael@paquier.xyz>2024-08-29 15:31:30 +0900
commit9f87da1cffda0e07ff3babcfa84abe9e849ccd95 (patch)
tree341732094c947f050641c42e9aaeb8eef286096a /src/backend/storage/buffer/buf_init.c
parentd7fe02fb9e6eee16b61874bc8964b0e2d4c5b2ad (diff)
downloadpostgresql-9f87da1cffda0e07ff3babcfa84abe9e849ccd95.tar.gz
postgresql-9f87da1cffda0e07ff3babcfa84abe9e849ccd95.zip
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
Diffstat (limited to 'src/backend/storage/buffer/buf_init.c')
0 files changed, 0 insertions, 0 deletions