Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
bae9b801
Commit
bae9b801
authored
Apr 04, 2017
by
Andres Freund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force synchronous commit in new-ish test_decoding test.
This was missed in
a924c327
ff.
parent
490e9a98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
contrib/test_decoding/expected/slot.out
contrib/test_decoding/expected/slot.out
+3
-0
contrib/test_decoding/sql/slot.sql
contrib/test_decoding/sql/slot.sql
+5
-0
No files found.
contrib/test_decoding/expected/slot.out
View file @
bae9b801
-- predictability
SET synchronous_commit = on;
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_p', 'test_decoding');
?column?
----------
...
...
@@ -31,6 +33,7 @@ SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_t2', 'tes
-- here we want to start a new session and wait till old one is gone
select pg_backend_pid() as oldpid \gset
\c -
SET synchronous_commit = on;
do 'declare c int = 0;
begin
while (select count(*) from pg_replication_slots where active_pid = '
...
...
contrib/test_decoding/sql/slot.sql
View file @
bae9b801
-- predictability
SET
synchronous_commit
=
on
;
SELECT
'init'
FROM
pg_create_logical_replication_slot
(
'regression_slot_p'
,
'test_decoding'
);
SELECT
'init'
FROM
pg_create_logical_replication_slot
(
'regression_slot_t'
,
'test_decoding'
,
true
);
...
...
@@ -9,6 +12,8 @@ SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_t2', 'tes
-- here we want to start a new session and wait till old one is gone
select
pg_backend_pid
()
as
oldpid
\
gset
\
c
-
SET
synchronous_commit
=
on
;
do
'declare c int = 0;
begin
while (select count(*) from pg_replication_slots where active_pid = '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment