Use Getopt::Long for catalog scripts

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: fe33a196ded8565d0fd8367e816d695b840e40cb
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2019-02-12T15:22:08Z
Releases: 12.0
Use Getopt::Long for catalog scripts

Replace hand-rolled option parsing with the Getopt module. This is
shorter and easier to read. In passing, make some cosmetic adjustments
for consistency.

Author: John Naylor
Reviewed-by: David Fetter
Discussion: https://postgr.es/m/CACPNZCvRjepXh5b2N50njN+rO_2Nzcf=jhMkKX7=79XWUKJyKA@mail.gmail.com

Files

PathChange+/−
src/backend/catalog/genbki.pl modified +14 −35
src/backend/catalog/Makefile modified +2 −6
src/backend/utils/Gen_fmgrtab.pl modified +12 −26
src/backend/utils/Makefile modified +1 −1

Discussion