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: Clarify handling of special-case values in bootstrap catalog dat
Date: Sat, 28 Apr 2018 19:27:20 +0000
Message-ID: <E1fCVVA-0001GW-JT@gemulon.postgresql.org> (raw)

Clarify handling of special-case values in bootstrap catalog data.

I (tgl) originally coded the special case for pg_proc.pronargs as
though it were a kind of default value.  It seems better though to
treat computable columns as an independent concern: this makes the
code clearer, and probably a bit faster too since we needn't do
work inside the per-column loop.

Improve related comments, as well, in the expectation that there
might be more cases like this in future.

John Naylor, some additional comment-hacking by me

Discussion: https://postgr.es/m/CAJVSVGW-D7OobzU=dybVT2JqZAx-4X1yvBJdavBmqQL05Q6CLw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/45c6d75f8cd2399181063b4e0ec11c2664ebeda6

Modified Files
--------------
src/backend/catalog/Catalog.pm           | 24 ++++++++++++++++--------
src/include/catalog/pg_proc.dat          |  3 +++
src/include/catalog/reformat_dat_file.pl | 18 +++++++++---------
3 files changed, 28 insertions(+), 17 deletions(-)



Message-ID: <E1fCVVA-0001GW-JT@gemulon.postgresql.org>
Permalink:  ../E1fCVVA-0001GW-JT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fCVVA-0001GW-JT@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: Clarify handling of special-case values in bootstrap catalog dat
  In-Reply-To: <E1fCVVA-0001GW-JT@gemulon.postgresql.org>
  References: <E1fCVVA-0001GW-JT@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