pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
Date: Mon, 22 Feb 2016 09:34:37 -0500
Message-ID: <10143.1456151677@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobgGHFi=cpfJZ+gkqLFieGNYseaeOmMpHqdZYuVyxvbcA@mail.gmail.com>
References: <E1aTrXw-0005kd-Nl@gemulon.postgresql.org>
	<21023.1455200996@sss.pgh.pa.us>
	<CA+TgmoYh2UycJAaW+UONuXJhThyRD_Eq_1xDbivROLLYaSfb2Q@mail.gmail.com>
	<CA+TgmoYrakoJzjNm_QpAZ4wktTG=MbPVJZiKETGeeXWaQ1N=1Q@mail.gmail.com>
	<14581.1455205343@sss.pgh.pa.us>
	<20201.1455210279@sss.pgh.pa.us>
	<24444.1455251654@sss.pgh.pa.us>
	<CA+TgmoaV7Tjr4D2+JsW+bBSmnGo4GqgxqKLJ3D8CMr7=Ayhx0Q@mail.gmail.com>
	<1427.1455301014@sss.pgh.pa.us>
	<20160212232232.GA29473@awork2.anarazel.de>
	<1056.1455571766@sss.pgh.pa.us>
	<CA+TgmoZqOpSJk1H9U4JxbQuX5Ywzb0=ZVRnzZzBQj3RCJuzbLA@mail.gmail.com>
	<16182.1455721494@sss.pgh.pa.us>
	<11103.1456089966@sss.pgh.pa.us>
	<CA+TgmobgGHFi=cpfJZ+gkqLFieGNYseaeOmMpHqdZYuVyxvbcA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Feb 22, 2016 at 2:56 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> !    held by the indicated process.  False indicates that this process is
> !    currently waiting to acquire this lock, which implies that at
> least one other
> !    process is holding a conflicting lock mode on the same lockable object.

> I know you're just updating existing language here, but this is false.
> It only implies that one other process is holding *or waiting for* a
> conflicting lock mode on the same lockable object.

True.  I had considered whether to fix that point as well, and decided
that it might just be overcomplicating matters.  But since you complain,
I'll add "or waiting for".

It also occurred to me last night that pg_blocking_pids() needs a
disclaimer similar to the existing one for pg_locks about how using it
a lot could put a performance drag on the system.

Other than adjusting those points, I think this is ready to go, and
will commit later today if I hear no objections.

			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



view thread (30+ messages)  latest in thread

Message-ID: <10143.1456151677@sss.pgh.pa.us>
Permalink:  ../10143.1456151677@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10143.1456151677@sss.pgh.pa.us

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, andres@anarazel.de, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution.
  In-Reply-To: <10143.1456151677@sss.pgh.pa.us>
  References: <E1aTrXw-0005kd-Nl@gemulon.postgresql.org> <21023.1455200996@sss.pgh.pa.us> <CA+TgmoYh2UycJAaW+UONuXJhThyRD_Eq_1xDbivROLLYaSfb2Q@mail.gmail.com> <CA+TgmoYrakoJzjNm_QpAZ4wktTG=MbPVJZiKETGeeXWaQ1N=1Q@mail.gmail.com> <14581.1455205343@sss.pgh.pa.us> <20201.1455210279@sss.pgh.pa.us> <24444.1455251654@sss.pgh.pa.us> <CA+TgmoaV7Tjr4D2+JsW+bBSmnGo4GqgxqKLJ3D8CMr7=Ayhx0Q@mail.gmail.com> <1427.1455301014@sss.pgh.pa.us> <20160212232232.GA29473@awork2.anarazel.de> <1056.1455571766@sss.pgh.pa.us> <CA+TgmoZqOpSJk1H9U4JxbQuX5Ywzb0=ZVRnzZzBQj3RCJuzbLA@mail.gmail.com> <16182.1455721494@sss.pgh.pa.us> <11103.1456089966@sss.pgh.pa.us> <CA+TgmobgGHFi=cpfJZ+gkqLFieGNYseaeOmMpHqdZYuVyxvbcA@mail.gmail.com> <10143.1456151677@sss.pgh.pa.us>

* 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