pgsql: Clean up sloppy coding in publicationcmds.c's OpenTableList().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clean up sloppy coding in publicationcmds.c's OpenTableList().
Date: 2018-12-07 16:02:55
Message-ID: E1gVIad-0000LP-FM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Clean up sloppy coding in publicationcmds.c's OpenTableList().

Remove dead code (which would be incorrect if it weren't dead),
per report from Pan Bian. Add a CHECK_FOR_INTERRUPTS in the
inner loop over child relations, because there's little point
in having one in the outer loop if there's not one here too.
Minor stylistic adjustments and comment improvements.

Seems to be aboriginal to this code (cf commit 665d1fad9).
Back-patch to v10 where that came in, not because any of this
is significant, but just to keep the branches looking similar.

Discussion: https://postgr.es/m/15539-06d00ef6b1e2e1bb@postgresql.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/aaf7b3bd6f715078867092e7e95c94a1e4222646

Modified Files
--------------
src/backend/commands/publicationcmds.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-12-07 17:12:18 pgsql: Fix misapplication of pgstat_count_truncate to wrong relation.
Previous Message Tom Lane 2018-12-07 15:41:33 pgsql: Doc: make cross-reference to format() function more specific.