projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030cdaf
)
Fix not-backwards-compatible pg_upgrade test for prepared transactions.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Tue, 30 Aug 2011 21:15:00 +0000
(17:15 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Tue, 30 Aug 2011 21:15:13 +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
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/check.c
b/contrib/pg_upgrade/check.c
index ada93fb58050cda047ae8465f64c2bd390f45451..aae408e408eae6199e3427e0b3b44eebde97363a 100644
(file)
--- a/
contrib/pg_upgrade/check.c
+++ b/
contrib/pg_upgrade/check.c
@@
-531,7
+531,7
@@
check_for_prepared_transactions(ClusterInfo *cluster)
res = executeQueryOrDie(conn,
"SELECT * "
- "FROM pg_catalog.pg_prepared_xact
()
");
+ "FROM pg_catalog.pg_prepared_xact
s
");
if (PQntuples(res) != 0)
pg_log(PG_FATAL, "The %s cluster contains prepared transactions\n",