| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Changes in 7.0 |
| Дата | |
| Msg-id | 21685.951406923@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] Changes in 7.0 (Peter Eisentraut <e99re41@DoCS.UU.SE>) |
| Ответы |
Re: [HACKERS] Changes in 7.0
|
| Список | pgsql-hackers |
Peter Eisentraut <e99re41@DoCS.UU.SE> writes:
>> Allow ^C to cancel COPY command (Massimo)
> That's cool, but if you look closely, psql doesn't do that (anymore). :(
> Is it safe to send PQcancelRequest in a copy state and then just forget
> about it? What's the correct behaviour?
For a COPY OUT (from the backend), the correct behavior is same as for
non-copy state: fire off the cancel request and then forget about it.
If the backend decides to honor the request then it will terminate the
copy in the usual way. For a COPY IN, it's up to you to stop sending
data...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера