aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-09-03 21:04:44 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-09-03 21:04:44 -0400
commitbeb404d3b165ab1cc0dae56b71a6929b4742a10b (patch)
tree3294cf3d51bc424de14e2e8efb7a946a280157e0 /src/backend/regex/regexec.c
parent9ebe2852e5435d88d5e3d655b05887b66059cc4d (diff)
downloadpostgresql-beb404d3b165ab1cc0dae56b71a6929b4742a10b.tar.gz
postgresql-beb404d3b165ab1cc0dae56b71a6929b4742a10b.zip
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
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions