Use extensible buffers to assemble command lines
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 11 Feb 2024 08:08:35 +0000 (09:08 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 11 Feb 2024 08:27:48 +0000 (09:27 +0100)
commite70abd67c3e6155fe8e853c4e29255578d9cf48d
tree9811c1dbcf4e8e5a9967dbdacf738adf95e3ec4f
parent469745468668917434dbef48eddad4f961880b3d
Use extensible buffers to assemble command lines

This makes use of StringInfo to assemble command lines, instead of
using fixed-size buffers and the (remote) possibility of "command too
long" errors.  Also makes the code a bit simpler.

This covers the test driver programs pg_regress and
pg_isolation_regress.

Similar to the changes done for pg_rewind in a33e17f210.

Discussion: https://www.postgresql.org/message-id/2be4fee5-738f-4749-b9f8-b452032c7ade%40eisentraut.org
src/test/isolation/isolation_main.c
src/test/regress/pg_regress_main.c