]> granicus.if.org Git - postgresql/commitdiff
Correct reference to pg_catalog.regtype in pg_upgrade query
authorTomas Vondra <tomas.vondra@postgresql.org>
Mon, 14 Oct 2019 22:25:04 +0000 (00:25 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Mon, 14 Oct 2019 22:35:51 +0000 (00:35 +0200)
The recursive CTE added in 0ccfc28223 referenced pg_catalog.regtype,
without the schema part, unlike all other queries in pg_upgrade.

Backpatch-to: 12
src/bin/pg_upgrade/version.c

index 60a1025c3ec292c3e1bc342e82477adfeeebe60d..701b17740d3665ac01ea10e55190c13ecfb00aae 100644 (file)
@@ -443,7 +443,7 @@ old_11_check_for_sql_identifier_data_type_usage(ClusterInfo *cluster)
                res = executeQueryOrDie(conn,
                                                                "WITH RECURSIVE oids AS ( "
                /* the sql_identifier type itself */
-                                                               "       SELECT 'information_schema.sql_identifier'::regtype AS oid "
+                                                               "       SELECT 'information_schema.sql_identifier'::pg_catalog.regtype AS oid "
                                                                "       UNION ALL "
                                                                "       SELECT * FROM ( "
                /* domains on the type */