Remove unnecessary code from psql's watch command - Mailing list pgsql-hackers

From Yugo NAGATA
Subject Remove unnecessary code from psql's watch command
Date
Msg-id 20240305220552.85fd4afd6b6b8103bf4fe3d0@sraoss.co.jp
Whole thread Raw
Responses Re: Remove unnecessary code from psql's watch command
List pgsql-hackers
Hi,

In the current code of do_watch(), sigsetjmp is called if WIN32
is defined, but siglongjmp is not called in the signal handler
in this condition. On Windows, currently, cancellation is checked
only by cancel_pressed, and  calling sigsetjmp in do_watch() is
unnecessary. Therefore, we can remove code around sigsetjmp in
do_watch(). I've attached the patch for this fix.

Regards,
Yugo Ngata

-- 
Yugo NAGATA <nagata@sraoss.co.jp>

Attachment

pgsql-hackers by date:

Previous
From: Jakub Wartak
Date:
Subject: Re: index prefetching
Next
From: Pavel Stehule
Date:
Subject: Re: Reducing the log spam