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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy