Fix pg_dump's handling of extension-member casts and languages.
Fix pg_dump's handling of extension-member casts and languages.

pg_dump has some heuristic rules for whether to dump casts and procedural
languages, since it's not all that easy to distinguish built-in ones from
user-defined ones.  However, we should not apply those rules to objects
that belong to an extension, but just use the perfectly well-defined rules
for what to do with extension member objects.  Otherwise we might
mistakenly lose extension member objects during a binary upgrade (which is
the only time that we'd want to dump extension members).

jmcatamney/gpdb,techdragon/Postgres-XL,50wu/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,kmjungersen/PostgresXL,tpostgres-projects/tPostgres,xinzweb/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,postmind-net/postgres-xl,ovr/postgres-xl,snaga/postgres-xl,arcivanov/postgres-xl,tpostgres-projects/tPostgres,lisakowen/gpdb,xinzweb/gpdb,arcivanov/postgres-xl,xinzweb/gpdb,kmjungersen/PostgresXL,arcivanov/postgres-xl,oberstet/postgres-xl,lisakowen/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,greenplum-db/gpdb,ashwinstar/gpdb,xinzweb/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,50wu/gpdb,ashwinstar/gpdb,ovr/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,tpostgres-projects/tPostgres,jmcatamney/gpdb,jmcatamney/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,50wu/gpdb,xinzweb/gpdb,greenplum-db/gpdb,adam8157/gpdb,postmind-net/postgres-xl,xinzweb/gpdb,lisakowen/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,zeroae/postgres-xl,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,xinzweb/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,yazun/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,zeroae/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,ovr/postgres-xl,zeroae/postgres-xl,Postgres-XL/Postgres-XL,yazun/postgres-xl,postmind-net/postgres-xl,adam8157/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,jmcatamney/gpdb,kmjungersen/PostgresXL,snaga/postgres-xl,50wu/gpdb,techdragon/Postgres-XL,snaga/postgres-xl,50wu/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,oberstet/postgres-xl,50wu/gpdb