Re: pgsql: Logical replication support for TRUNCATE

2018-04-07 Thread Tom Lane
Andres Freund  writes:
> On 2018-04-07 15:43:53 +, Peter Eisentraut wrote:
>> Logical replication support for TRUNCATE

> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=serinus=2018-04-07%2015%3A46%3A01
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=flaviventris=2018-04-07%2015%3A46%3A01

After half an hour, out of the twelve buildfarm animals that have run
subscription-check, we have twelve failures.  Was this tested at all?

regards, tom lane



Re: pgsql: Logical replication support for TRUNCATE

2018-04-07 Thread Andres Freund
Hi,

On 2018-04-07 15:43:53 +, Peter Eisentraut wrote:
> Logical replication support for TRUNCATE
> 
> Update the built-in logical replication system to make use of the
> previously added logical decoding for TRUNCATE support.  Add the
> required truncate callback to pgoutput and a new logical replication
> protocol message.
> 
> Publications get a new attribute to determine whether to replicate
> truncate actions.  When updating a publication via pg_dump from an older
> version, this is not set, thus preserving the previous behavior.
> 
> Author: Simon Riggs 
> Author: Marco Nenciarini 
> Author: Peter Eisentraut 
> Reviewed-by: Petr Jelinek 
> Reviewed-by: Andres Freund 
> Reviewed-by: Alvaro Herrera 

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=serinus=2018-04-07%2015%3A46%3A01
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=flaviventris=2018-04-07%2015%3A46%3A01

- Andres