Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YImFp-0000Fw-GF for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2015 22:47:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YImFo-0007el-G8 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2015 22:47:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YImFn-0007ec-FB for pgsql-hackers@postgreSQL.org; Tue, 03 Feb 2015 22:47:31 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YImFh-0002rL-Eb for pgsql-hackers@postgreSQL.org; Tue, 03 Feb 2015 22:47:29 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 4A0102951F; Tue, 3 Feb 2015 14:47:19 -0800 (PST) Received: from EX13-CAS-004.vmware.com (EX13-CAS-004.vmware.com [10.113.191.54]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 3E1C218809; Tue, 3 Feb 2015 14:47:19 -0800 (PST) Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Tue, 3 Feb 2015 14:47:12 -0800 Message-ID: <54D14FE7.5070601@vmware.com> Date: Wed, 4 Feb 2015 00:47:03 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Andres Freund CC: PostgreSQL-development Subject: Re: [COMMITTERS] pgsql: Process 'die' interrupts while reading/writing from the client s References: In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 02/03/2015 11:51 PM, Andres Freund wrote: > + * This is called just after low-level writes. That might be after the read > + * finished successfully, or it was interrupted via interrupt. 'blocked' tells > + * us whether the Looks like you forgot to complete that sentence before pushing... Also, nightjar is unhappy with this: TRAP: FailedAssertion("!(InterruptHoldoffCount == 0 && CritSectionCount == 0)", File: "/pgbuild/root/HEAD/pgsql.build/../pgsql/src/backend/tcop/postgres.c", Line: 574) I think that assertion in ProcessClientWriteInterrupt() should be simply removed. ProcessClientWriteInterrupt() copes just fine, i.e. does nothing, if we're in a critical section or interrupts are held. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers