Fix handling of extension membership when filling in a shell operator.
Fix handling of extension membership when filling in a shell operator.

The previous coding would result in deleting and not re-creating the
extension membership pg_depend rows, since there was no
CommandCounterIncrement that would allow recordDependencyOnCurrentExtension
to see that the deletion had happened.  Make it work like the shell type
case, ie, keep the existing entries (and then throw an error if they're for
the wrong extension).

Per bug #6172 from Hitoshi Harada.  Investigation and fix by Dimitri
Fontaine.

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