Minor improvements for reformat_dat_file.pl.

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

Commit: 27aaf6eff49a6348408476652911fe4acceffc71
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-03-08T16:48:49Z
Releases: 12.0
Minor improvements for reformat_dat_file.pl.

Use Getopt::Long in preference to hand-rolled option parsing code.

Also, remove "-I .../backend/catalog" switch from the Makefile
invocations.  That's been unnecessary for some time, and leaving it
there gives the false impression it's needed in manual invocations.

John Naylor (extracted from a larger but more controversial patch)

Discussion: https://postgr.es/m/CACPNZCsHdcQN2jQ1=ptbi1Co2Nj3aHgRCUMk62=ThgWNabPY+Q@mail.gmail.com

Files

PathChange+/−
src/include/catalog/Makefile modified +2 −5
src/include/catalog/reformat_dat_file.pl modified +14 −29

Discussion