pgsql: Ensure that "pg_restore -l" reports dependent TOC entries correc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure that "pg_restore -l" reports dependent TOC entries correc
Дата
Msg-id E1s4TDh-0023yK-Un@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c1aea206e3e333b8c9f8be20422426ae845dd0cf

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Don't corrupt plpython's "TD" dictionary in a recursive trigger
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix incorrect format placeholder