]> granicus.if.org Git - postgresql/commit
Fix handling of extension membership when filling in a shell operator.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Aug 2011 14:55:47 +0000 (10:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Aug 2011 14:55:47 +0000 (10:55 -0400)
commit660a081c3f6892dae353136fa0883cd3c69813d4
tree2742b5cbab1b5e3776d72a38187f715a09dffb9e
parent5473f283f501ff9f5e38e89d3a2e89f738a7e76f
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