Re: Table inheritance, unique constraints and foreign key problem - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Table inheritance, unique constraints and foreign key problem
Date
Msg-id 8971.1196130605@sss.pgh.pa.us
Whole thread Raw
In response to Re: Table inheritance, unique constraints and foreign key problem  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Table inheritance, unique constraints and foreign key problem
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> I'm a bit puzzled myself why this affects SELECT FOR UPDATE/SHARE but not
> straight UPDATES and DELETES.

In straight UPDATE/DELETE we have enough structure in the query to know
how to associate each tuple returned to the executor top level with
exactly one tuple in exactly one target table (which is where to apply
the tuple lock operation).  We don't have that much structure in general
SELECT --- for example, what to do with null-filled rows in a LEFT JOIN,
or cases where one row gives rise to more than one joined row, or
aggregation or UNION?  Some of these cases can probably be rejected as
unsupportable, but it'll still take a lot of work.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Fixes for MONEY type using locale
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [PATCHES] Fixes for MONEY type using locale