pgsql: Add pg_dump support for ALTER obj DEPENDS ON EXTENSION

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add pg_dump support for ALTER obj DEPENDS ON EXTENSION
Date: 2020-03-11 19:58:54
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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/[email protected]

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2b9d70159154a5ff6eb2d6f09db6f8da433328aa

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-03-11 21:16:20 pgsql: Paper over bt_metap() oldest_xact bug in backbranches.
Previous Message Tom Lane 2020-03-11 19:28:24 pgsql: Avoid holding a directory FD open across pg_ls_dir_files() calls