Anyway, the postmaster was received signal 2 in step 5 as below.
(1) run psql.exe in a Windows Command Prompt
(2) execute a SQL with more than one page of results, e.g. `show all;`
(3) press Ctrl + C to break it on the first page
(4) press up arrow key to try to execute the previous SQL of the step(2) again
(5) Occasionally, it will show you nothing about the SQL, then you can try to input a character ';' and press Enter key, the PostgreSQL will crash unexpectedly
So, Let me change my question:
If I started the PostgreSQL by pg_ctl command in the same Windows command prompt,
Is it possible that pressing Ctrl + C on psql to break query(not session) will send SIGINT to postmaster process unexpectedly?
On Thu, Feb 22, 2018 at 03:57:53PM +0900, 趙明春 wrote: > You mean that the up-arrow key operation in psql.exe may send a SIGINT(or > SIGTERM) signal to server(postmaster) unexpectedly?
No. What Tom means here is that you are likely mistaking what you think is a server crash by a client crash, and that the version of libreadline your psql version is linked to is buggy and unable to handle that properly. psql has no control on the server itself. -- Michael