]> granicus.if.org Git - postgresql/commitdiff
Add missing condition for pg_depend in hstore migration script.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 30 Sep 2013 15:33:54 +0000 (11:33 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 30 Sep 2013 15:33:54 +0000 (11:33 -0400)
Error noted by Andres Freund.

contrib/hstore/hstore--1.1--1.2.sql

index 99b8a168fa3b873fc118085ee91785b363c90b8c..9c127d44033c8dbf191ca6c16f20e6db4e3a46a1 100644 (file)
@@ -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