diff options
author | Andres Freund | 2016-03-04 01:09:08 +0000 |
---|---|---|
committer | Andres Freund | 2016-03-04 01:22:25 +0000 |
commit | 1986c3c440151b056877b446e7d9c2861906aa26 (patch) | |
tree | 3e0684654ab327d7a22d774af335a684cc2a126c | |
parent | d561f1caecbbeca2f7adab39a29432923d15b8ef (diff) |
Force synchronous_commit=on in test_decoding's concurrent_ddl_dml.spec.
Otherwise running installcheck-force on a server with
synchronous_commit=off will result in the tests failing. All the other
tests already do so...
Backpatch: 9.4, where logical decoding was added
-rw-r--r-- | contrib/test_decoding/specs/concurrent_ddl_dml.spec | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/test_decoding/specs/concurrent_ddl_dml.spec b/contrib/test_decoding/specs/concurrent_ddl_dml.spec index 3191826451..4a76532402 100644 --- a/contrib/test_decoding/specs/concurrent_ddl_dml.spec +++ b/contrib/test_decoding/specs/concurrent_ddl_dml.spec @@ -14,6 +14,8 @@ teardown } session "s1" +setup { SET synchronous_commit=on; } + step "s1_init" { SELECT 'init' FROM pg_create_logical_replication_slot('isolation_slot', 'test_decoding'); } step "s1_begin" { BEGIN; } step "s1_insert_tbl1" { INSERT INTO tbl1 (val1, val2) VALUES (1, 1); } @@ -23,6 +25,8 @@ step "s1_insert_tbl2_3col" { INSERT INTO tbl2 (val1, val2, val3) VALUES (1, 1, 1 step "s1_commit" { COMMIT; } session "s2" +setup { SET synchronous_commit=on; } + step "s2_alter_tbl1_float" { ALTER TABLE tbl1 ALTER COLUMN val2 TYPE float; } step "s2_alter_tbl1_char" { ALTER TABLE tbl1 ALTER COLUMN val2 TYPE character varying; } step "s2_alter_tbl1_text" { ALTER TABLE tbl1 ALTER COLUMN val2 TYPE text; } |