row filtering for logical replication - Mailing list pgsql-hackers

From Euler Taveira
Subject row filtering for logical replication
Date
Msg-id CAHE3wggb715X+mK_DitLXF25B=jE6xyNCH4YOwM860JR7HarGQ@mail.gmail.com
Whole thread Raw
Responses Re: row filtering for logical replication  (David Fetter <david@fetter.org>)
Re: row filtering for logical replication  (Craig Ringer <craig@2ndquadrant.com>)
Re: row filtering for logical replication  (Erik Rijkers <er@xs4all.nl>)
Re: row filtering for logical replication  (Euler Taveira <euler@timbira.com.br>)
List pgsql-hackers
Hi,

The attached patches add support for filtering rows in the publisher.
The output plugin will do the work if a filter was defined in CREATE
PUBLICATION command. An optional WHERE clause can be added after the
table name in the CREATE PUBLICATION such as:

CREATE PUBLICATION foo FOR TABLE departments WHERE (id > 2000 AND id <= 3000);

Row that doesn't match the WHERE clause will not be sent to the subscribers.

Patches 0001 and 0002 are only refactors and can be applied
independently. 0003 doesn't include row filtering on initial
synchronization.

Comments?


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] pgbench randomness initialization
Next
From: Tom Lane
Date:
Subject: Re: compress method for spgist - 2