pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Jon Nelson <jnelson+pgsql@jamponi.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: 8.4: COPY continues after client disconnects
Date: Fri, 08 Mar 2013 13:04:32 +0200
Message-ID: <5139C5C0.5070305@vmware.com> (raw)
In-Reply-To: <CAKuK5J3wYtQz1sfE4ZJ_vNfsFTk0HAcw5OBQvLFMK6jGf4guow@mail.gmail.com>
References: <CAKuK5J3wYtQz1sfE4ZJ_vNfsFTk0HAcw5OBQvLFMK6jGf4guow@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 01.03.2013 17:15, Jon Nelson wrote:
> Using PostgreSQL 8.4.13 on ScientificLinux 6.3 (x86_64), I noticed
> that a pg_dump ran out of (local) disk space.
> However, the server was still using CPU and disk resources.  An strace
> clearly showed this pattern:
>
> read(....) = 8192
> sendto(...) = -1 EPIPE
> -- SIGPIPE (Broken pipe) @ ....
>
> The server does detect the broken pipe. It logs the following messages:
>
> 637 LOG:  08006: could not send data to client: Connection reset by peer
> 638 LOCATION:  internal_flush, pqcomm.c:1108
> 639 STATEMENT:  COPY ... to stdout;
> 640 LOG:  08006: could not send data to client: Broken pipe
> 641 LOCATION:  internal_flush, pqcomm.c:1108
> 642 STATEMENT:  COPY ... to stdout;

This was fixed in version 9.2. Per release notes:

>     Cancel the running query if the client gets disconnected (Florian Pflug)
>
>     If the backend detects loss of client connection during a query, it will now cancel the query rather than attempting to finish it.

COPY counts as a "running query".

-- 
- Heikki


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



view thread (2+ messages)

Message-ID: <5139C5C0.5070305@vmware.com>
Permalink:  ../5139C5C0.5070305@vmware.com/
Also on:    postgresql.org/message-id/5139C5C0.5070305@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, jnelson+pgsql@jamponi.net
  Subject: Re: 8.4: COPY continues after client disconnects
  In-Reply-To: <5139C5C0.5070305@vmware.com>
  References: <CAKuK5J3wYtQz1sfE4ZJ_vNfsFTk0HAcw5OBQvLFMK6jGf4guow@mail.gmail.com> <5139C5C0.5070305@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox