Simplify option handling in pg_ctl.
authorNathan Bossart <nathan@postgresql.org>
Fri, 14 Jul 2023 19:35:54 +0000 (12:35 -0700)
committerNathan Bossart <nathan@postgresql.org>
Fri, 14 Jul 2023 19:35:54 +0000 (12:35 -0700)
commit03d1080d8a95d7ced90043f3aaad7d2aaeaedb1b
tree8a353cb9a159e4ff63f810c3ac30e1bf2763b0ef
parente08d74ca1342cb9e6047daad2019b550ecf54877
Simplify option handling in pg_ctl.

Now that the in-tree getopt_long() moves non-options to the end of
argv (see commit 411b720343), we can remove pg_ctl's workaround for
getopt_long() implementations that don't reorder argv.

Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/20230713034903.GA991765%40nathanxps13
src/bin/pg_ctl/pg_ctl.c