Can't terminate hung COPY

From: David Rees <drees76(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Can't terminate hung COPY
Date: 2013-03-20 19:37:37
Message-ID: CAHtT9RvdODRVC-iAq-BKaXPOKrPxcjMnohwtgKrGEJ7xKGXtcg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

PostgreSQL 8.4.16 on CentOS 5.9.

I've run into a situation where executing a \COPY from psql will hang
and at that point it's impossible to terminate the COPY command.

I've tried pg_cancel_backend and pg_terminalte_backend - even sending
the process itself a TERM signal.

Sending the process KILL works, but of course that restarts the entire
server which is far from ideal.

Any idea on how to cleanly terminal the offending process at this point?

Any idea on what may cause \COPY to hang and how to prevent it?

Thanks

Dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Orlitzky 2013-03-20 20:04:05 State of the art re: group default privileges
Previous Message Shaun Thomas 2013-03-20 18:49:58 Re: "Leaking" disk space on FreeBSD servers