postgresql/src/bin/pg_dump
Tom Lane 064709f803 Simplify and speed up pg_dump's creation of parent-table links.
Instead of trying to optimize this by skipping creation of the
links for tables we don't plan to dump, just create them all in
bulk with a single scan over the pg_inherits data.  The previous
approach was more or less O(N^2) in the number of pg_inherits
entries, not to mention being way too complicated.

Also, don't create useless TableAttachInfo objects.
It's silly to create a TableAttachInfo object that we're not
going to dump, when we know perfectly well at creation time
that it won't be dumped.

Patch by me; thanks to Julien Rouhaud for review.

Discussion: https://postgr.es/m/1376149.1675268279@sss.pgh.pa.us
2023-03-17 13:43:10 -04:00
..
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
t Fix pg_dump for hash partitioning on enum columns. 2023-03-17 13:31:40 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
Makefile Add LZ4 compression to pg_dump 2023-02-23 21:19:26 +01:00
common.c Simplify and speed up pg_dump's creation of parent-table links. 2023-03-17 13:43:10 -04:00
compress_gzip.c Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
compress_gzip.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
compress_io.c Add LZ4 compression to pg_dump 2023-02-23 21:19:26 +01:00
compress_io.h Improve wording in pg_dump compression docs 2023-03-01 16:11:38 +01:00
compress_lz4.c Improve wording in pg_dump compression docs 2023-03-01 16:11:38 +01:00
compress_lz4.h Add LZ4 compression to pg_dump 2023-02-23 21:19:26 +01:00
compress_none.c Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
compress_none.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
dumputils.c Fix outdated references to guc.c 2023-03-02 13:49:39 +01:00
dumputils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Fix pg_dump for hash partitioning on enum columns. 2023-03-17 13:31:40 -04:00
nls.mk Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
parallel.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
parallel.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_backup.h pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_archiver.c Fix pg_dump for hash partitioning on enum columns. 2023-03-17 13:31:40 -04:00
pg_backup_archiver.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01: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 pg_dump: Remove move "blob" terminology 2023-02-24 08:49:28 +01:00
pg_backup_null.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01:00
pg_backup_tar.c pg_dump: Remove "blob" terminology 2022-12-05 08:52:55 +01: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 2023 2023-01-02 15:00:37 -05:00
pg_backup_utils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_dump.c Simplify and speed up pg_dump's creation of parent-table links. 2023-03-17 13:43:10 -04:00
pg_dump.h Simplify and speed up pg_dump's creation of parent-table links. 2023-03-17 13:43:10 -04:00
pg_dump_sort.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
pg_dumpall.c Fix various typos in code and tests 2023-02-09 14:43:53 +09:00
pg_restore.c Improve frontend error logging style. 2022-04-08 14:55:14 -04:00