Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 731ebb6

Browse files
committed
Fix not-backwards-compatible pg_upgrade test for prepared transactions.
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.
1 parent 5bba65d commit 731ebb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/check.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ check_for_prepared_transactions(ClusterInfo *cluster)
532532

533533
res = executeQueryOrDie(conn,
534534
"SELECT * "
535-
"FROM pg_catalog.pg_prepared_xact()");
535+
"FROM pg_catalog.pg_prepared_xacts");
536536

537537
if (PQntuples(res) != 0)
538538
pg_log(PG_FATAL, "The %s cluster contains prepared transactions\n",

0 commit comments

Comments
 (0)