Simplify option handling in pg_ctl.

Nathan Bossart <nathan@postgresql.org>

Commit: 03d1080d8a95d7ced90043f3aaad7d2aaeaedb1b
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2023-07-14T19:35:54Z
Releases: 17.0
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

Files

PathChange+/−
src/bin/pg_ctl/pg_ctl.c modified +128 −140

Discussion