pgsql: Add pg_dump support for ALTER obj DEPENDS ON EXTENSION

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Add pg_dump support for ALTER obj DEPENDS ON EXTENSION
Дата
Msg-id E1jC7VG-0001hf-RM@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add pg_dump support for ALTER obj DEPENDS ON EXTENSION

pg_dump is oblivious to this kind of dependency, so they're lost on
dump/restores (and pg_upgrade).  Have pg_dump emit ALTER lines so that
they're preserved.  Add some pg_dump tests for the whole thing, also.

Reviewed-by: Tom Lane (offlist)
Reviewed-by: Ibrar Ahmed
Reviewed-by: Ahsan Hadi (who also reviewed commit 899a04f5ed61)
Discussion: https://postgr.es/m/20200217225333.GA30974@alvherre.pgsql

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/bin/pg_dump/common.c                    |   1 +
src/bin/pg_dump/pg_dump.c                   | 104 ++++++++++++++++++++++++++--
src/bin/pg_dump/pg_dump.h                   |   1 +
src/test/modules/test_pg_dump/t/001_base.pl |  46 ++++++++++++
4 files changed, 146 insertions(+), 6 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Avoid holding a directory FD open across pg_ls_dir_files() calls
Следующее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Paper over bt_metap() oldest_xact bug in backbranches.