pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_dump: Reorganize getTableAttrs()
Date: Thu, 30 Aug 2018 16:42:47 +0000
Message-ID: <E1fvQ1v-0004Ui-P5@gemulon.postgresql.org> (raw)

pg_dump: Reorganize getTableAttrs()

Instead of repeating the almost same large query in each version branch,
use one query and add a few columns to the SELECT list depending on the
version.  This saves a lot of duplication.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Branch
------
master

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

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 198 +++++++++++++++-------------------------------
1 file changed, 62 insertions(+), 136 deletions(-)



Message-ID: <E1fvQ1v-0004Ui-P5@gemulon.postgresql.org>
Permalink:  ../E1fvQ1v-0004Ui-P5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fvQ1v-0004Ui-P5@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: peter_e@gmx.net
  Subject: Re: pgsql: pg_dump: Reorganize getTableAttrs()
  In-Reply-To: <E1fvQ1v-0004Ui-P5@gemulon.postgresql.org>
  References: <E1fvQ1v-0004Ui-P5@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