From: Andrew Dunstan Date: Mon, 30 Sep 2013 15:33:54 +0000 (-0400) Subject: Add missing condition for pg_depend in hstore migration script. X-Git-Tag: REL9_3_1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d794eae6135b3bb43b54498e95253aa43d776905;p=postgresql Add missing condition for pg_depend in hstore migration script. Error noted by Andres Freund. --- diff --git a/contrib/hstore/hstore--1.1--1.2.sql b/contrib/hstore/hstore--1.1--1.2.sql index 99b8a168fa..9c127d4403 100644 --- a/contrib/hstore/hstore--1.1--1.2.sql +++ b/contrib/hstore/hstore--1.1--1.2.sql @@ -18,6 +18,7 @@ BEGIN FROM pg_proc p JOIN pg_depend d ON p.proname = 'hstore_to_json_loose' + AND d.classid = 'pg_proc'::regclass AND d.objid = p.oid AND d.refclassid = 'pg_extension'::regclass JOIN pg_extension x