Search Postgresql Archives

Re: Can't terminate hung COPY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Rees <drees76@xxxxxxxxx> writes:
> On Wed, Mar 20, 2013 at 12:37 PM, David Rees <drees76@xxxxxxxxx> wrote:
>> 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.

> Some additional notes:

> Running psql on the same LAN for some reason works fine with the same
> COPY file. On a remote network it hangs.

That seems to point the finger at the network stack: what is probably
happening is it's failing to abort a recv() or send() when the process
receives a signal.  You might see if you can confirm that diagnosis,
perhaps by watching the backend process with strace, or by attaching to
it after the fact with gdb and seeing where the stack trace leads.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux