Re: row filtering for logical replication - Mailing list pgsql-hackers

From Erik Rijkers
Subject Re: row filtering for logical replication
Date
Msg-id 0bfccedb6ee196b3f5f4e3a96adadb03@xs4all.nl
Whole thread Raw
In response to Re: row filtering for logical replication  (Erik Rijkers <er@xs4all.nl>)
Responses Re: row filtering for logical replication
List pgsql-hackers
On 2018-11-01 08:56, Erik Rijkers wrote:
> On 2018-11-01 01:29, Euler Taveira wrote:
>> Em qua, 28 de fev de 2018 às 20:03, Euler Taveira
>> <euler@timbira.com.br> escreveu:
>>> The attached patches add support for filtering rows in the publisher.
>>> 
> 
> I ran pgbench-over-logical-replication with a WHERE-clause and could
> not get this to do a correct replication.  Below is the output of the
> attached test program.
> 
> 
> $ ./logrep_rowfilter.sh

I have noticed that the failure to replicate correctly can be avoided by 
putting a wait state of (on my machine) at least 3 seconds between the 
setting up of the subscription and the start of pgbench.  See the bash 
program I attached in my previous mail.  The bug can be avoided by a 
'sleep 5' just before the start of the actual pgbench run.

So it seems this bug is due to some timing error in your patch (or 
possibly in logical replication itself).


Erik Rijkers




pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: PostgreSQL Limits and lack of documentation about them.
Next
From: Amit Langote
Date:
Subject: Re: Hooks to Modify Execution Flow and Query Planner