pgsql: Don't do logical replication of TRUNCATE of zero tables

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't do logical replication of TRUNCATE of zero tables
Date: 2018-04-30 17:51:51
Message-ID: E1fDCxr-0006Yh-F9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-04-30 17:56:06 Re: pgsql: Prevent infinity and NaN in jsonb/plperl transform
Previous Message Peter Eisentraut 2018-04-30 17:24:15 pgsql: Prevent infinity and NaN in jsonb/plperl transform