Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDv6T-0000uA-Bo for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2013 11:04:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UDv6S-00056v-JN for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2013 11:04:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDv6R-00056p-PB for pgsql-bugs@postgresql.org; Fri, 08 Mar 2013 11:04:43 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDv6L-0008Mr-Lc for pgsql-bugs@postgresql.org; Fri, 08 Mar 2013 11:04:42 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 4FF7C28A79; Fri, 8 Mar 2013 03:04:34 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 4BF77401BB; Fri, 8 Mar 2013 03:04:34 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 08AD9C1532; Fri, 8 Mar 2013 03:04:33 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 80FVgm1XD5y4; Fri, 8 Mar 2013 03:04:32 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id D8301C1519; Fri, 8 Mar 2013 03:04:32 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 8 Mar 2013 03:04:31 -0800 (PST) Message-ID: <5139C5C0.5070305@vmware.com> Date: Fri, 08 Mar 2013 13:04:32 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Jon Nelson CC: pgsql-bugs@postgresql.org Subject: Re: 8.4: COPY continues after client disconnects References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.5 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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