Re: Deadlock bug - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Deadlock bug
Date
Msg-id AANLkTi=SZ9TQeFptkirQz1Oi-pmU0ynEFwCEc4rOQ6tf@mail.gmail.com
Whole thread Raw
In response to Re: Deadlock bug  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Deadlock bug  (Joel Jacobson <joel@gluefinance.com>)
List pgsql-hackers
On Wed, Aug 25, 2010 at 10:02 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> On Wed, 2010-08-25 at 15:51 +0200, Markus Wanner wrote:
>> Simon,
>>
>> On 08/25/2010 11:53 AM, Simon Riggs wrote:
>> > ..we want to ensure that the PK value..
>>
>> ..or any other possibly referenced attributes?
>
> Don't think that's relevant.
>
> "referenced" meaning "by an RI constraint", which only ever refers to
> PKs in other tables.

That doesn't appear to be correct:

rhaas=# create table p (a integer primary key, b integer not null,
unique (b)); NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit
index "p_pkey" for table "p"
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "p_b_key"
for table "p"
CREATE TABLE
rhaas=# create table r (b integer not null references p (b));
CREATE TABLE

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Nicolas Barbier
Date:
Subject: Re: Deadlock bug
Next
From: Markus Wanner
Date:
Subject: Re: Version Numbering