diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-11 16:54:54 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-03-11 16:54:54 -0300 |
commit | e70187c9b47cc1035a42196e62c4b5958f122a77 (patch) | |
tree | e6ffae9b872813ed0300527a86e976219cda5fe0 /src/bin/pg_dump/common.c | |
parent | 63b51dfec18eb3c280adfa0f6e970946c441f574 (diff) | |
download | postgresql-e70187c9b47cc1035a42196e62c4b5958f122a77.tar.gz postgresql-e70187c9b47cc1035a42196e62c4b5958f122a77.zip |
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
Diffstat (limited to 'src/bin/pg_dump/common.c')
-rw-r--r-- | src/bin/pg_dump/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index 9b5869add8b..a0616fd6afe 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -587,6 +587,7 @@ AssignDumpId(DumpableObject *dobj) dobj->namespace = NULL; /* may be set later */ dobj->dump = DUMP_COMPONENT_ALL; /* default assumption */ dobj->ext_member = false; /* default assumption */ + dobj->depends_on_ext = false; /* default assumption */ dobj->dependencies = NULL; dobj->nDeps = 0; dobj->allocDeps = 0; |