Re: Rollback after "Connection timed out"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rollback after "Connection timed out"?
Дата
Msg-id 1552283.1698417902@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rollback after "Connection timed out"?  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-admin
Ron <ronljohnsonjr@gmail.com> writes:
> On Server_A, I ran:
> psql --host=blarge mydb -c "ALTER TABLE blah ..."

> After about 2 hours, it displayed this message:
> Could not receive data from server: Connection timed out
> Connection to server was lost

> And yet the ALTER TABLE (it's heavily inheritance-partitioned) is still 
> running on blarge.  Is it still working, or is it rolling back (which I'd 
> expect to be fast)?

It will probably run to completion if you leave it alone.  The
server would only notice loss of connection when it next tries to
send something to the client, which (barring error/notice
messages) would be the command completion report.

For next time, you might want to think about reducing the
TCP keepalive interval settings.

            regards, tom lane



В списке pgsql-admin по дате отправления:

Предыдущее
От: "Arjan Saly Consultancy (EU)"
Дата:
Сообщение: Re: ORDER BY DESC and NULLS LAST by default
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: ORDER BY DESC and NULLS LAST by default