Add pg_dump support for ALTER obj DEPENDS ON EXTENSION
authorAlvaro Herrera
Wed, 11 Mar 2020 19:54:54 +0000 (16:54 -0300)
committerAlvaro Herrera
Wed, 11 Mar 2020 19:54:54 +0000 (16:54 -0300)
commitb08dee24a5574ba6657d238b91c10f1f8e2608f8
treefcdae56a5328cd62d224e38d55d83f07d0675386
parent085b6b6679e73b9b386f209b4d625c7bc60597c0
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[email protected]
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/test/modules/test_pg_dump/t/001_base.pl