Dump extension functions under pg_catalog for 5X
Dump extension functions under pg_catalog for 5X

This is a forward port of 6X_STABLE commit: bdad273d27d in order to
support upgrading extensions that install dependent functions under
pg_catalog in a 5X->7X+ upgrade path.

Original commit message follows:

------------------------------------------------------------------------

This ensures that when pg_dump is invoked in binary_upgrade mode against
a 5X cluster during pg_upgrade, it collects and dumps the functions
under pg_catalog belonging to an extension.

We found this bug when we tried to upgrade PXF and PXF's functions
did not get dumped in binary upgrade mode. (PXF's functions are created
under pg_catalog)

This change in 6X should have accompanied the backport of the
extension machinery into 5X.

------------------------------------------------------------------------

Co-authored-by: Kalen Krempely <9e21ad9b1cb949be1035df9e3f38e74e41b67a0b@vmware.com>

lisakowen/gpdb,50wu/gpdb,xinzweb/gpdb,adam8157/gpdb,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,50wu/gpdb,lisakowen/gpdb,lisakowen/gpdb,greenplum-db/gpdb,50wu/gpdb,xinzweb/gpdb,greenplum-db/gpdb,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,50wu/gpdb,50wu/gpdb,lisakowen/gpdb,xinzweb/gpdb,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,lisakowen/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,adam8157/gpdb,lisakowen/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,lisakowen/gpdb,greenplum-db/gpdb,adam8157/gpdb