Re: Rollback after "Connection timed out"? - Mailing list pgsql-admin

From Tom Lane
Subject Re: Rollback after "Connection timed out"?
Date
Msg-id 1552283.1698417902@sss.pgh.pa.us
Whole thread Raw
In response to Rollback after "Connection timed out"?  (Ron <ronljohnsonjr@gmail.com>)
List 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 by date:

Previous
From: "Arjan Saly Consultancy (EU)"
Date:
Subject: Re: ORDER BY DESC and NULLS LAST by default
Next
From: Laurenz Albe
Date:
Subject: Re: ORDER BY DESC and NULLS LAST by default