pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Refactoring pg_dump's getTables()
Date: Tue, 19 Oct 2021 17:27:30 -0400
Message-ID: <2007363.1634678850@sss.pgh.pa.us> (raw)
In-Reply-To: <E4670DDB-2C63-4700-A87A-F83CF9D810B7@yesql.se>
References: <202110172005.z4gsdny63hzt@alvherre.pgsql>
	<E4670DDB-2C63-4700-A87A-F83CF9D810B7@yesql.se>

Daniel Gustafsson <daniel@yesql.se> writes:
> On 17 Oct 2021, at 22:05, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>> Maybe I would group together the changes that all require the same version
>> test, rather than keeping the output columns in the same order.

> I agree with that, if we're doing all this we might as well go all the way for
> readability.

I had a go at doing that, but soon decided that it wasn't as great an
idea as it first seemed.  There are two problems:

1. It's not clear what to do with fields where there are three or more
variants, such as reloptions and checkoptions.

2. Any time we modify the behavior for a particular field, we'd
have to merge or un-merge it from the stanza for the
previously-most-recently-relevant version.  This seems like it'd
be a maintenance headache and make patch footprints bigger than they
needed to be.

So I ended up not doing very much merging.  I did make an effort
to group the fields in perhaps a slightly more logical order
than before.

			regards, tom lane





view thread (6+ messages)

Message-ID: <2007363.1634678850@sss.pgh.pa.us>
Permalink:  ../2007363.1634678850@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2007363.1634678850@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, daniel@yesql.se, alvherre@alvh.no-ip.org
  Subject: Re: Refactoring pg_dump's getTables()
  In-Reply-To: <2007363.1634678850@sss.pgh.pa.us>
  References: <202110172005.z4gsdny63hzt@alvherre.pgsql> <E4670DDB-2C63-4700-A87A-F83CF9D810B7@yesql.se> <2007363.1634678850@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