| От | Jeff Davis |
|---|---|
| Тема | COPY and "pg_ctl -m fast stop" |
| Дата | |
| Msg-id | 1236808964.630.17.camel@dell.linuxdev.us.dell.com обсуждение исходный текст |
| Список | pgsql-general |
If I open up a session and do:
copy t from stdin;
And then I let the psql session just sit there, not producing data, then
I do a "pg_ctl -m fast stop", then that backend doing the copy doesn't
terminate.
Is this expected behavior? I looked at the code, and it looks like it
ignores an interruption while waiting for data from the client, and
immediately tries to receive data from the socket again.
It seems like there should be some way for "-m fast" to gracefully close
the active connections. Right now, "-m immediate" is required, which
causes nasty log messages and recovery on restart.
Perhaps it could ignore SIGINT while waiting for data from the client,
but respond to SIGTERM?
Regards,
Jeff Davis
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера