pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clean up sloppy coding in publicationcmds.c's OpenTableList().
Date: Fri, 07 Dec 2018 16:02:55 +0000
Message-ID: <E1gVIad-0000LM-F5@gemulon.postgresql.org> (raw)

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9286ef8e914c69fbf6087d6339215fd10836e25a

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



view thread (3+ messages)  latest in thread

Message-ID: <E1gVIad-0000LM-F5@gemulon.postgresql.org>
Permalink:  ../E1gVIad-0000LM-F5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gVIad-0000LM-F5@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Clean up sloppy coding in publicationcmds.c's OpenTableList().
  In-Reply-To: <E1gVIad-0000LM-F5@gemulon.postgresql.org>
  References: <E1gVIad-0000LM-F5@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox