pgsql: Fix handling of extension membership when filling in a shell ope

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix handling of extension membership when filling in a shell ope
Date: 2011-08-22 14:56:15
Message-ID: E1QvVvD-0000SR-4n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/660a081c3f6892dae353136fa0883cd3c69813d4

Modified Files
--------------
src/backend/catalog/pg_operator.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-08-22 16:16:56 pgsql: Typo fix.
Previous Message Bruce Momjian 2011-08-22 14:47:22 Re: pgsql: Properly call strerror() in thread test; add comments.