postgresql/src/bin
Tom Lane 87ad491472 Remove arbitrary MAXPGPATH limit on command lengths in pg_ctl.
Replace fixed-length command buffers with psprintf() calls.  We didn't
have anything as convenient as psprintf() when this code was written,
but now that we do, there's little reason for the limitation to
stand.  Removing it eliminates some corner cases where (for example)
starting the postmaster with a whole lot of options fails.

Most individual file names that pg_ctl deals with are still restricted
to MAXPGPATH, but we've seldom had complaints about that limitation
so long as it only applies to one filename.

Back-patch to all supported branches.

Phil Krylov

Discussion: https://postgr.es/m/567e199c6b97ee19deee600311515b86@krylov.eu
2021-09-03 21:04:44 -04:00
..
initdb Improve defaults shown in postgresql.conf.sample and pg_settings 2021-08-23 12:33:38 -04:00
pg_amcheck Remove --quiet option from pg_amcheck 2021-08-20 12:44:54 +02:00
pg_archivecleanup Add some missing exit() calls in error paths for various binaries 2021-07-29 11:42:58 +09:00
pg_basebackup Remove superfluous variable assignment 2021-09-02 13:03:21 +02:00
pg_checksums Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
pg_config Translation updates 2021-06-21 12:33:50 +02:00
pg_controldata Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
pg_ctl Remove arbitrary MAXPGPATH limit on command lengths in pg_ctl. 2021-09-03 21:04:44 -04:00
pg_dump Don't print extra parens around expressions in extended stats 2021-09-01 00:43:22 +02:00
pg_resetwal pg_resetwal: Improve numeric command-line argument parsing 2021-08-20 10:51:59 +02:00
pg_rewind Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
pg_test_fsync Support direct I/O on macOS. 2021-07-19 11:01:01 +12:00
pg_test_timing Translation updates 2021-06-21 12:33:50 +02:00
pg_upgrade C comment: correct heading of extension query 2021-08-03 12:26:08 -04:00
pg_verifybackup Fix backup manifests to generate correct WAL-Ranges across timelines 2021-08-23 11:09:33 +09:00
pg_waldump Remove some unnecessary casts in format arguments 2021-08-08 22:08:07 +02:00
pgbench Use COPY FREEZE in pgbench for faster benchmark table population. 2021-09-02 10:39:09 +09:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Improve tab-completion for CREATE PUBLICATION. 2021-09-01 22:01:15 +09:00
scripts Unify PostgresNode's new() and get_new_node() methods 2021-07-29 05:58:08 -04:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00