postgresql/src/bin/pgbench
Michael Paquier e2bab2d792 Remove support for unlogged on partitioned tables
The following commands were allowed on partitioned tables, with
different effects:
1) ALTER TABLE SET [UN]LOGGED did not issue an error, and did not update
pg_class.relpersistence.
2) CREATE UNLOGGED TABLE was working with pg_class.relpersistence marked
as initially defined, but partitions did not inherit the UNLOGGED
property, which was confusing.

This commit causes the commands mentioned above to fail for partitioned
tables, instead.

pg_dump is tweaked so as partitioned tables marked as UNLOGGED ignore
the option when dumped from older server versions.  pgbench needs a
tweak for --unlogged and --partitions=N to ignore the UNLOGGED option on
the partitioned tables created, its partitions still being unlogged.

Author: Michael Paquier
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/ZiiyGFTBNkqcMQi_@paquier.xyz
2024-10-03 10:55:02 +09:00
..
t Improve test coverage for changes to inplace-updated catalogs. 2024-06-27 19:21:05 -07:00
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
exprparse.y Update copyright for 2024 2024-01-03 20:49:05 -05:00
exprscan.l Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
pgbench.c Remove support for unlogged on partitioned tables 2024-10-03 10:55:02 +09:00
pgbench.h Update copyright for 2024 2024-01-03 20:49:05 -05:00