Fix handling of extension membership when filling in a shell operator.
authorTom Lane <[email protected]>
Mon, 22 Aug 2011 14:55:47 +0000 (10:55 -0400)
committerTom Lane <[email protected]>
Mon, 22 Aug 2011 14:56:03 +0000 (10:56 -0400)
commit9c471d24126280a5f90ee9d276a9df37480dfcde
treeb43ef941464620af06947d078eaa953f92c7cbb6
parent38c9eb8fee298a9242bb2049c4fdf94407187d0c
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.
src/backend/catalog/pg_operator.c