]> granicus.if.org Git - postgresql/commit
Fix DROP OPERATOR FAMILY IF EXISTS.
authorRobert Haas <rhaas@postgresql.org>
Fri, 21 Oct 2011 13:10:46 +0000 (09:10 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 21 Oct 2011 13:12:23 +0000 (09:12 -0400)
commit980261929f2b8c40d6be1979ff81c943cad907b3
treeebc0af260055c510211b988899984eea01b5e920
parentb4a0223d008d7c2c9824d846e22b664b2f09cf6e
Fix DROP OPERATOR FAMILY IF EXISTS.

Essentially, the "IF EXISTS" portion was being ignored, and an error
thrown anyway if the opfamily did not exist.

I broke this in commit fd1843ff8979c0461fb3f1a9eab61140c977e32d; so
backpatch to 9.1.X.

Report and diagnosis by KaiGai Kohei.
src/backend/commands/opclasscmds.c
src/test/regress/expected/drop_if_exists.out