pgsql: Fix DROP OPERATOR FAMILY IF EXISTS.
pgsql: Fix DROP OPERATOR FAMILY IF EXISTS.
От:
Robert Haas <rhaas@postgresql.org>
Дата:
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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/980261929f2b8c40d6be1979ff81c943cad907b3 Modified Files -------------- src/backend/commands/opclasscmds.c | 7 +++---- src/test/regress/expected/drop_if_exists.out | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-)