| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Ensure that "pg_restore -l" reports dependent TOC entries correc |
| Date: | 2024-05-07 22:23:35 |
| Message-ID: | E1s4TDi-0023yU-1d@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a3c00ab1545029ee5d8c87d55da976ae1ccf2ba8
Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2024-05-08 06:43:10 | pgsql: Fix incorrect format placeholder |
| Previous Message | Tom Lane | 2024-05-07 22:15:22 | pgsql: Don't corrupt plpython's "TD" dictionary in a recursive trigger |