]> granicus.if.org Git - postgresql/commitdiff
Fix not-backwards-compatible pg_upgrade test for prepared transactions.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Aug 2011 21:15:00 +0000 (17:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Aug 2011 21:15:00 +0000 (17:15 -0400)
There's no reason for this test to use the undocumented pg_prepared_xact()
function, when it can use the stable API pg_prepared_xacts instead.
Fixes breakage against 8.3, as reported by Justin Arnold.

contrib/pg_upgrade/check.c

index 9690695fce8c25ede119bf4fd08bfa4a107e285a..93b9e695b731cca50027d03b21812822163cce99 100644 (file)
@@ -532,7 +532,7 @@ check_for_prepared_transactions(ClusterInfo *cluster)
 
        res = executeQueryOrDie(conn,
                                                        "SELECT * "
-                                                       "FROM pg_catalog.pg_prepared_xact()");
+                                                       "FROM pg_catalog.pg_prepared_xacts");
 
        if (PQntuples(res) != 0)
                pg_log(PG_FATAL, "The %s cluster contains prepared transactions\n",