Skip to content

Commit 9bd4dc2

Browse files
author
James William Pye
committed
Configure the cluster with prepared transactions iff pg_inn.version_info >=(8,1).
1 parent 083b953 commit 9bd4dc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

postgresql/unittest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ def configure_cluster(self):
5656
log_min_messages = 'FATAL',
5757
silent_mode = 'off',
5858
))
59+
# 8.4 turns prepared transactions off by default.
60+
if self.cluster.installation.version_info >= (8,1):
61+
self.cluster.settings.update(dict(
62+
max_prepared_transactions = '3',
63+
))
5964

6065
def initialize_database(self):
6166
c = self.cluster.connection(

0 commit comments

Comments
 (0)