Skip to content

Commit 8ffb300

Browse files
committed
Test the bdr.pg_stat_replication view
1 parent 88491a4 commit 8ffb300

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ REGRESSCHECKS= \
326326
catalog \
327327
terminate \
328328
skipchanges \
329+
pgstatreplicationslots \
329330
$(DDLREGRESSCHECKS) \
330331
dml/basic dml/contrib dml/delete_pk dml/extended dml/missing_pk dml/toasted \
331332
$(EXTRAREGRESSCHECKS) \

expected/pgreplicationslots.out

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--
2+
-- Access the extended bdr.pg_replication_slots view
3+
-- with the data backported from 9.5 and 9.6.
4+
--
5+
SELECT 1
6+
FROM pg_stat_replication
7+
INNER JOIN bdr.pg_replication_slots USING (pid)
8+
WHERE confirmed_flush_lsn IS NOT NULL;
9+
?column?
10+
----------
11+
1
12+
1
13+
(2 rows)
14+

sql/pgreplicationslots.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--
2+
-- Access the extended bdr.pg_replication_slots view
3+
-- with the data backported from 9.5 and 9.6.
4+
--
5+
6+
SELECT 1
7+
FROM pg_stat_replication
8+
INNER JOIN bdr.pg_replication_slots USING (pid)
9+
WHERE confirmed_flush_lsn IS NOT NULL;

0 commit comments

Comments
 (0)