postgresql/src/bin
Tom Lane c2242d3640 pg_receivewal, pg_recvlogical: allow canceling initial password prompt.
Previously it was impossible to terminate these programs via control-C
while they were prompting for a password.  We can fix that trivially
for their initial password prompts, by moving setup of the SIGINT
handler from just before to just after their initial GetConnection()
calls.

This fix doesn't permit escaping out of later re-prompts, but those
should be exceedingly rare, since the user's password or the server's
authentication setup would have to have changed meanwhile.  We
considered applying a fix similar to commit 46d665bc2, but that
seemed more complicated than it'd be worth.  Moreover, this way is
back-patchable, which that wasn't.

The misbehavior exists in all supported versions, so back-patch to all.

Tom Lane and Nathan Bossart

Discussion: https://postgr.es/m/747443.1635536754@sss.pgh.pa.us
2021-11-21 14:13:35 -05:00
..
initdb Translation updates 2021-11-08 10:09:20 +01:00
pg_archivecleanup Translation updates 2021-11-08 10:09:20 +01:00
pg_basebackup pg_receivewal, pg_recvlogical: allow canceling initial password prompt. 2021-11-21 14:13:35 -05:00
pg_config Translation updates 2021-11-08 10:09:20 +01:00
pg_controldata Translation updates 2021-11-08 10:09:20 +01:00
pg_ctl Translation updates 2021-11-08 10:09:20 +01:00
pg_dump Translation updates 2021-11-08 10:09:20 +01:00
pg_resetwal Translation updates 2021-11-08 10:09:20 +01:00
pg_rewind Translation updates 2021-11-08 10:09:20 +01:00
pg_test_fsync Translation updates 2021-11-08 10:09:20 +01:00
pg_test_timing Translation updates 2021-11-08 10:09:20 +01:00
pg_upgrade Translation updates 2021-11-08 10:09:20 +01:00
pg_verify_checksums Translation updates 2021-11-08 10:09:20 +01:00
pg_waldump Translation updates 2021-11-08 10:09:20 +01:00
pgbench Fix CREATE INDEX CONCURRENTLY for the newest prepared transactions. 2021-10-23 18:36:43 -07:00
pgevent Update copyright for 2018 2018-01-02 23:30:12 -05:00
psql Make psql's \password default to CURRENT_USER, not PQuser(conn). 2021-11-12 14:55:32 -05:00
scripts Translation updates 2021-11-08 10:09:20 +01:00
Makefile Allow on-line enabling and disabling of data checksums 2018-04-05 22:04:48 +02:00