diff --git a/Makefile.in b/Makefile.in index fdd54d5675..185d80e80f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) \ diff --git a/expected/pgreplicationslots.out b/expected/pgreplicationslots.out new file mode 100644 index 0000000000..64baab80b0 --- /dev/null +++ b/expected/pgreplicationslots.out @@ -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) + diff --git a/sql/pgreplicationslots.sql b/sql/pgreplicationslots.sql new file mode 100644 index 0000000000..c3104e4f91 --- /dev/null +++ b/sql/pgreplicationslots.sql @@ -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;