Minor cleanup in genbki.pl.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8d90b4d01a6120aeaf61ede22dbdda0dd714b7dd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-03-03T17:05:28Z
Releases: 11.0
Minor cleanup in genbki.pl.

Separate out the pg_attribute logic of genbki.pl into its own function.
Drop unnecessary "defined $catalog->{data}" check.  This both narrows
and shortens the data writing loop of the script.  There is no functional
change (the emitted files are the same as before).

John Naylor

Discussion: https://postgr.es/m/CAJVSVGXnLH=BSo0x-aA818f=MyQqGS5nM-GDCWAMdnvQJTRC1A@mail.gmail.com

Files

PathChange+/−
src/backend/catalog/genbki.pl modified +137 −129

Discussion