pgsql: Don't do logical replication of TRUNCATE of zero tables - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Don't do logical replication of TRUNCATE of zero tables
Date
Msg-id E1fDCxr-0006Yh-F9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't do logical replication of TRUNCATE of zero tables

When due to publication configuration, a TRUNCATE change ends up with
zero tables to be published, don't send the message out, just skip it.
It's not wrong, but obviously useless overhead.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/92e1583b439ffab1d20419998895932e4fbe32fd

Modified Files
--------------
src/backend/replication/pgoutput/pgoutput.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Prevent infinity and NaN in jsonb/plperl transform
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Prevent infinity and NaN in jsonb/plperl transform