BUG #17698: On SIGTERM, psql terminates, but leaves the statement running
В списке pgsql-bugs по дате отправления:
| От | PG Bug reporting form |
|---|---|
| Тема | BUG #17698: On SIGTERM, psql terminates, but leaves the statement running |
| Дата | |
| Msg-id | 17698-58a6ab8caec496b0@postgresql.org обсуждение исходный текст |
| Ответы |
Re: BUG #17698: On SIGTERM, psql terminates, but leaves the statement running
|
| Список | pgsql-bugs |
The following bug has been logged on the website: Bug reference: 17698 Logged by: Dmitry Astapov Email address: dastapov@gmail.com PostgreSQL version: 14.2 Operating system: CentOS 7 Description: Reproduction: start psql, launch a query that will take a while (I used 'select pg_sleep(1234)'), then from another terminal do "kill -TERM <pid of psql>". Psql would be terminated, but query would not be, and will keep running until TCP timeout kicks in and kills the stale connection. SIGINT, on the other hand, will cause psql will terminate the current statement. Perhaps psql could have a SIGTERM handler that does roughly what SIGINT handler does before terminating the whole process, and would cancel the current statement (if any)?
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера