]> granicus.if.org Git - postgresql/commit
Clarify handling of special-case values in bootstrap catalog data.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 19:27:16 +0000 (15:27 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Apr 2018 19:27:16 +0000 (15:27 -0400)
commit45c6d75f8cd2399181063b4e0ec11c2664ebeda6
tree9a3b563d3c4333414fb968234f1607437f6c4f9b
parentf2bb32dbd6af8ec3eb99308289a83b1ff3ca6514
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
src/backend/catalog/Catalog.pm
src/include/catalog/pg_proc.dat
src/include/catalog/reformat_dat_file.pl