aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-protocol3.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-03 13:51:43 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-03 13:51:43 -0500
commit3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb (patch)
tree159781076e54f6344348e8b6265681ac7b07a7f2 /src/interfaces/libpq/fe-protocol3.c
parentf06b1c598254f8adb2b7f51d6a7685618a7fb121 (diff)
downloadpostgresql-3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb.tar.gz
postgresql-3769e11a31831fc2f3bd4c4a24b4f45c352fb8fb.zip
Make test_target_session_attrs more robust against connection failure.
Feed the desired command to psql via "-c" not stdin, else Perl may complain that it can't push stdin to an already-failed psql process, as seen in intermittent buildfarm failures. Make some minor cosmetic improvements while at it. Before commit ee28cacf6 we had no tests here that expected failure to connect, so there seems no need for a back-patch. Discussion: https://postgr.es/m/CALDaNm2mo8YED=M2ZJKGf1U3F3mw6SaQuLXWCK8rZP6sECYcrA@mail.gmail.com
Diffstat (limited to 'src/interfaces/libpq/fe-protocol3.c')
0 files changed, 0 insertions, 0 deletions