Where Clause not being applied to all tables in a publication - Mailing list pgsql-bugs

From Brad Nicholson
Subject Where Clause not being applied to all tables in a publication
Date
Msg-id CAMMnM=9qDFDQH+QH7fBnR7KPKxkJpyfVfdENJru9EmwdWEmVOw@mail.gmail.com
Whole thread Raw
Responses Re: Where Clause not being applied to all tables in a publication  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
When adding more than one table to a logical replication publication with a where clause, the where clause is only applied to a single table in the publication, not all of them. 

Basic test case:

testdb=# create table foo (id bigserial primary key);
CREATE TABLE
testdb=# create table bar  (id bigserial primary key);
CREATE TABLE
testdb=# CREATE PUBLICATION test_pub for table foo,bar WHERE (id = 1);
CREATE PUBLICATION
testdb=# select * from pg_publication_tables \gx
-[ RECORD 1 ]--------
pubname    | test_pub
schemaname | public
tablename  | foo
attnames   | {id}
rowfilter  |
-[ RECORD 2 ]--------
pubname    | test_pub
schemaname | public
tablename  | bar
attnames   | {id}
rowfilter  | (id = 1)

Thanks,
Brad

pgsql-bugs by date:

Previous
From: Muhammad Ali Ansari
Date:
Subject: Re: BUG #18075: configuration variable idle_session_timeout not working as expected
Next
From: "David G. Johnston"
Date:
Subject: Re: Where Clause not being applied to all tables in a publication