postgresql/src/bin/pg_dump
Alvaro Herrera 374c7a2290
Allow specifying an access method for partitioned tables
It's now possible to specify a table access method via
CREATE TABLE ... USING for a partitioned table, as well change it with
ALTER TABLE ... SET ACCESS METHOD.  Specifying an AM for a partitioned
table lets the value be used for all future partitions created under it,
closely mirroring the behavior of the TABLESPACE option for partitioned
tables.  Existing partitions are not modified.

For a partitioned table with no AM specified, any new partitions are
created with the default_table_access_method.

Also add ALTER TABLE ... SET ACCESS METHOD DEFAULT, which reverts to the
original state of using the default for new partitions.

The relcache of partitioned tables is not changed: rd_tableam is not
set, even if a partitioned table has a relam set.

Author: Justin Pryzby <pryzby@telsasoft.com>
Author: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Reviewed-by: The authors themselves
Discussion: https://postgr.es/m/CAE-ML+9zM4wJCGCBGv01k96qQ3gFv4WFcFy=zqPHKeaEFwwv6A@mail.gmail.com
Discussion: https://postgr.es/m/20210308010707.GA29832%40telsasoft.com
2024-03-25 16:30:36 +01:00
..
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
t Allow specifying an access method for partitioned tables 2024-03-25 16:30:36 +01:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
common.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_gzip.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
compress_gzip.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_io.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_io.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_lz4.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
compress_lz4.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_none.c Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
compress_none.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
compress_zstd.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
compress_zstd.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
dumputils.c Reintroduce MAINTAIN privilege and pg_maintain predefined role. 2024-03-13 14:49:26 -05:00
dumputils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
filter.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
filter.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Add missing file to nls Makefile 2023-11-30 10:56:51 +01:00
parallel.c Rename static function to avoid conflicting names 2024-02-07 22:16:21 +01:00
parallel.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_backup.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_backup_archiver.c Introduce transaction_timeout 2024-02-15 23:56:12 +02:00
pg_backup_archiver.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_backup_custom.c Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
pg_backup_db.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:04 -05:00
pg_backup_directory.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_backup_null.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_tar.c Add and use symbolic constants for tar header offsets and file types. 2023-08-01 13:50:42 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_backup_utils.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_dump.c Allow specifying an access method for partitioned tables 2024-03-25 16:30:36 +01:00
pg_dump.h Rename pg_constraint.conwithoutoverlaps to conperiod 2024-03-05 11:24:17 +01:00
pg_dump_sort.c Use C99-designated initializer syntax for more arrays 2024-02-28 08:42:36 +09:00
pg_dumpall.c Fix dumping role comments when using --no-role-passwords 2024-03-21 23:31:57 +01:00
pg_restore.c Fix spelling and punctuation 2023-11-30 10:56:53 +01:00