Add pg_dump support for ALTER obj DEPENDS ON EXTENSION

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: f977e6dec8a01f32eee0ccfafc80646d3546b8f7
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2020-03-11T19:54:54Z
Releases: 12.3
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

Files

Discussion