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

Commit 333eb32

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 030cdaf commit 333eb32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ check_for_prepared_transactions(ClusterInfo *cluster)
531531

532532
res = executeQueryOrDie(conn,
533533
"SELECT * "
534-
"FROM pg_catalog.pg_prepared_xact()");
534+
"FROM pg_catalog.pg_prepared_xacts");
535535

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

0 commit comments

Comments
 (0)