Skip to content

Commit

Permalink
Test the bdr.pg_stat_replication view
Browse files Browse the repository at this point in the history
  • Loading branch information
ringerc committed Jul 25, 2016
1 parent 88491a4 commit 8ffb300
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ REGRESSCHECKS= \
catalog \
terminate \
skipchanges \
pgstatreplicationslots \
$(DDLREGRESSCHECKS) \
dml/basic dml/contrib dml/delete_pk dml/extended dml/missing_pk dml/toasted \
$(EXTRAREGRESSCHECKS) \
Expand Down
14 changes: 14 additions & 0 deletions expected/pgreplicationslots.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--
-- Access the extended bdr.pg_replication_slots view
-- with the data backported from 9.5 and 9.6.
--
SELECT 1
FROM pg_stat_replication
INNER JOIN bdr.pg_replication_slots USING (pid)
WHERE confirmed_flush_lsn IS NOT NULL;
?column?
----------
1
1
(2 rows)

9 changes: 9 additions & 0 deletions sql/pgreplicationslots.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--
-- Access the extended bdr.pg_replication_slots view
-- with the data backported from 9.5 and 9.6.
--

SELECT 1
FROM pg_stat_replication
INNER JOIN bdr.pg_replication_slots USING (pid)
WHERE confirmed_flush_lsn IS NOT NULL;

0 comments on commit 8ffb300

Please sign in to comment.