Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVtpd-00052g-4X for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Feb 2016 04:35:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVtpc-0003jc-DK for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Feb 2016 04:35:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVtoH-0002BF-3J for pgsql-hackers@postgresql.org; Wed, 17 Feb 2016 04:33:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVtoD-0007sU-Sd for pgsql-hackers@postgresql.org; Wed, 17 Feb 2016 04:33:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1H4Xlmt020299; Tue, 16 Feb 2016 23:33:47 -0500 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Introduce group locking to prevent parallel processes from deadl In-reply-to: References: <27041.1455388321@sss.pgh.pa.us> <22842.1455474783@sss.pgh.pa.us> <30320.1455488783@sss.pgh.pa.us> <13398.1455656090@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 16 Feb 2016 23:22:40 -0500" Date: Tue, 16 Feb 2016 23:33:47 -0500 Message-ID: <20298.1455683627@sss.pgh.pa.us> X-Pg-Spam-Score: -1.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 Robert Haas writes: > Hmm, that's true. I don't think it actually matters all that much, > because proclock->tag.myProc->lockGroupLeader == NULL has pretty much > the same effect as if proclock->tag.myProc->lockGroupLeader == > proclock->tag.myProc. But not completely. One problem is that we > don't currently assume that 8-byte writes are atomic, so somebody > might see the group leader field half-set, which would be bad. Yes, exactly. I'm not certain if there are any real platforms where a pointer-sized write wouldn't be atomic (it sure sounds inefficient for that to be true), but we have not assumed that to date and I'd just as soon not start here. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers