postgresql/src/bin/pg_dump
Tom Lane b99dc6694c Ensure that "pg_restore -l" reports dependent TOC entries correctly.
If -l was specified together with selective-restore options such as -n
or -N, dependent TOC entries such as comments would be omitted from
the listing, even when an actual restore would have selected them.
This happened because PrintTOCSummary neglected to update the te->reqs
marking of the entry they depended on.

Per report from Justin Pryzby.  This has been wrong since 0d4e6ed30
taught _tocEntryRequired to sometimes look at the "reqs" marking of
other TOC entries, so back-patch to all supported branches.

Discussion: https://postgr.es/m/ZjoeirG7yxODdC4P@pryzbyj2023
2024-05-07 18:23:15 -04:00
..
po Translation updates 2024-05-06 12:13:39 +02:00
t In pg_dump, don't dump a stats object unless dumping underlying table. 2023-12-29 10:57:11 -05:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Fix pg_dump for hash partitioning on enum columns. 2023-03-17 13:31:40 -04:00
compress_io.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
compress_io.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dumputils.c Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:38 -08:00
dumputils.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Add missing dependency of pg_dumpall to WIN32RES. 2022-03-22 08:28:52 -07:00
nls.mk Translation updates 2020-09-14 13:14:53 +02:00
parallel.c In libpq for Windows, call WSAStartup once and WSACleanup not at all. 2020-10-19 11:23:51 -04:00
parallel.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_backup.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_archiver.c Ensure that "pg_restore -l" reports dependent TOC entries correctly. 2024-05-07 18:23:15 -04:00
pg_backup_archiver.h Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_backup_custom.c Cope with data-offset-less archive files during out-of-order restores. 2020-07-17 13:04:06 -04:00
pg_backup_db.c Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_directory.c Handle close() failures more robustly in pg_dump and pg_basebackup. 2021-11-17 13:08:25 -05:00
pg_backup_null.c Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
pg_backup_tar.c Handle close() failures more robustly in pg_dump and pg_basebackup. 2021-11-17 13:08:25 -05: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 copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_backup_utils.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_dump.c In pg_dump, don't dump a stats object unless dumping underlying table. 2023-12-29 10:57:11 -05:00
pg_dump.h In pg_dump, don't dump a stats object unless dumping underlying table. 2023-12-29 10:57:11 -05:00
pg_dump_sort.c Adjust pg_dump's priority ordering for casts. 2021-11-22 17:16:29 -05:00
pg_dumpall.c Fix typo in pg_dumpall role comments fix 2024-03-22 01:01:30 +01:00
pg_restore.c Fix handling of -d "connection string" in pg_dump/pg_restore. 2020-09-24 18:19:38 -04:00