Re: row filtering for logical replication

Поиск
Список
Период
Сортировка
От Erik Rijkers
Тема Re: row filtering for logical replication
Дата
Msg-id 0bfccedb6ee196b3f5f4e3a96adadb03@xs4all.nl
обсуждение исходный текст
Ответ на Re: row filtering for logical replication  (Erik Rijkers <er@xs4all.nl>)
Ответы Re: row filtering for logical replication  (Euler Taveira <euler@timbira.com.br>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: PostgreSQL Limits and lack of documentation about them.
Следующее
От: Amit Langote
Дата:
Сообщение: Re: Hooks to Modify Execution Flow and Query Planner