pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Refactoring pg_dump's getTables()
Date: Sun, 17 Oct 2021 18:38:12 -0400
Message-ID: <1477471.1634510292@sss.pgh.pa.us> (raw)
In-Reply-To: <202110172005.z4gsdny63hzt@alvherre.pgsql>
References: <202110172005.z4gsdny63hzt@alvherre.pgsql>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Yeah, this seems a lot better than the original coding.  Maybe I would
> group together the changes that all require the same version test,
> rather than keeping the output columns in the same order.  This reduces
> the number of branches.  Because the follow-on code uses column names
> rather than numbers, there is no reason to keep related columns
> together.  But it's a clear improvement even without that.

Yeah, I thought about rearranging the code order some more, but
desisted since it'd make the patch footprint a bit bigger (I'd
want to make all the related stanzas list things in a uniform
order).  But maybe we should just do that.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1477471.1634510292@sss.pgh.pa.us>
Permalink:  ../1477471.1634510292@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1477471.1634510292@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org
  Subject: Re: Refactoring pg_dump's getTables()
  In-Reply-To: <1477471.1634510292@sss.pgh.pa.us>
  References: <202110172005.z4gsdny63hzt@alvherre.pgsql> <1477471.1634510292@sss.pgh.pa.us>

* 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