aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-08-30 17:15:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-08-30 17:15:00 -0400
commit731ebb64b77571e1dc391ba96c4bf9c685a07f2a (patch)
tree1ec25b90618dff188311821c3c2f924fd17e2765
parent5bba65de94498f99bcf133ce590802d8196042fa (diff)
downloadpostgresql-731ebb64b77571e1dc391ba96c4bf9c685a07f2a.tar.gz
postgresql-731ebb64b77571e1dc391ba96c4bf9c685a07f2a.zip
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.
-rw-r--r--contrib/pg_upgrade/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/check.c b/contrib/pg_upgrade/check.c
index 9690695fce8..93b9e695b73 100644
--- a/contrib/pg_upgrade/check.c
+++ b/contrib/pg_upgrade/check.c
@@ -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",