postgresql/src
Tom Lane f07a20c8a3 Improve WIN32 waiting logic in psql's \watch command.
do_watch had some leftover logic for enabling siglongjmp out of
waiting for input.  That's never done anything on Windows (cf.
psql_cancel_callback), and do_watch no longer relies on it for
non-Windows, so let's drop it.

Also, when the user cancels \watch by pressing ^C, the Windows
code would run the query one more time before exiting.  That doesn't
seem very desirable, and it's not what happens on other platforms.
Use the "done" flag similarly to non-Windows to avoid the extra query
execution.

Yugo Nagata (with minor fixes by me)

Discussion: https://postgr.es/m/20240305220552.85fd4afd6b6b8103bf4fe3d0@sraoss.co.jp
2024-03-08 12:07:35 -05:00
..
backend Admit deferrable PKs into rd_pkindex, but flag them as such 2024-03-08 16:32:29 +01:00
bin Improve WIN32 waiting logic in psql's \watch command. 2024-03-08 12:07:35 -05:00
common Unicode case mapping tables and functions. 2024-03-07 11:15:06 -08:00
fe_utils Centralize logic for restoring errno in signal handlers. 2024-02-14 16:34:18 -06:00
include Admit deferrable PKs into rd_pkindex, but flag them as such 2024-03-08 16:32:29 +01:00
interfaces Cope with a deficiency in OpenSSL 3.x's error reporting. 2024-03-07 19:38:17 -05:00
makefiles Remove AIX support 2024-02-28 15:17:23 +04:00
pl Redefine backend ID to be an index into the proc array 2024-03-03 19:37:28 +02:00
port Fix overflow in Windows replacement pg_pread/pg_pwrite. 2024-03-03 08:40:41 +13:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Admit deferrable PKs into rd_pkindex, but flag them as such 2024-03-08 16:32:29 +01:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Introduce a new GUC 'standby_slot_names'. 2024-03-08 08:10:45 +05:30
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove make function vpathsearch 2024-01-29 07:24:59 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00