Re: [COMMITTERS] pgsql: Improve concurrency of foreign key locking

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Improve concurrency of foreign key locking
Date: 2013-01-23 17:37:09
Message-ID: 22182.1358962629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> On 2013-01-23 11:58:28 -0500, Andrew Dunstan wrote:
>> This error message change looks rather odd, and has my head spinning a bit:
>>
>> - errmsg("SELECT FOR UPDATE/SHARE cannot be applied to
>> the nullable side of an outer join")));
>> + errmsg("SELECT FOR UPDATE/SHARE/KEY UPDATE/KEY SHARE
>> cannot be applied to the nullable side of an outer join")))
>>
>> Can't we do better than that?

> I don't really see how? I don't think listing only the current locklevel
> really is an improvement and something like "SELECT ... FOR $locktype
> cannot .." seem uncommon enough in pg error messages to be strange.
> Now I aggree that listing all those locklevels isn't that nice, but I
> don't really have a better idea.

I don't really see what's wrong with the original spelling of the
message. The fact that you can now insert KEY in there doesn't really
affect anything for the purposes of this error.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-01-23 17:48:53 Re: [COMMITTERS] pgsql: Improve concurrency of foreign key locking
Previous Message Andres Freund 2013-01-23 17:15:16 Re: [COMMITTERS] pgsql: Improve concurrency of foreign key locking

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2013-01-23 17:48:53 Re: [COMMITTERS] pgsql: Improve concurrency of foreign key locking
Previous Message Phil Sorber 2013-01-23 17:36:51 [PATCH] Add Makefile dep in bin/scripts for libpgport