summaryrefslogtreecommitdiff
path: root/contrib/test_decoding/sql
diff options
context:
space:
mode:
authorNoah Misch2021-02-27 15:02:56 +0000
committerNoah Misch2021-02-27 15:02:56 +0000
commit388b959315205b0b65efb074ec84e1d7fad62402 (patch)
treeff310a2b6a76b3a0fc10c3ccb3b85846e836efda /contrib/test_decoding/sql
parent977b2c08535f2a82ba7c310c88420cbbca1772e8 (diff)
Raise a timeout to 180s, in contrib/test_decoding.
Per buildfarm member hornet. The test is new in v14, so no back-patch.
Diffstat (limited to 'contrib/test_decoding/sql')
-rw-r--r--contrib/test_decoding/sql/twophase.sql5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/test_decoding/sql/twophase.sql b/contrib/test_decoding/sql/twophase.sql
index 894e4f5baf1..dacedfe1814 100644
--- a/contrib/test_decoding/sql/twophase.sql
+++ b/contrib/test_decoding/sql/twophase.sql
@@ -68,9 +68,8 @@ SELECT 'test_prepared1' AS relation, locktype, mode
FROM pg_locks
WHERE locktype = 'relation'
AND relation = 'test_prepared1'::regclass;
--- The above CLUSTER command shouldn't cause a timeout on 2pc decoding. The
--- call should return within a second.
-SET statement_timeout = '1s';
+-- The above CLUSTER command shouldn't cause a timeout on 2pc decoding.
+SET statement_timeout = '180s';
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'two-phase-commit', '1', 'include-xids', '0', 'skip-empty-xacts', '1');
RESET statement_timeout;
COMMIT PREPARED 'test_prepared_lock';