Re: FOR UPDATE/SHARE incompatibility with GROUP BY, DISTINCT, HAVING and window functions

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FOR UPDATE/SHARE incompatibility with GROUP BY, DISTINCT, HAVING and window functions
Date: 2014-01-31 22:49:53
Message-ID: CAB7nPqRsyvp6dU7AT6V9qbNLJu_Eo2ByyGZSD0ytwe4p-XwkRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Feb 1, 2014 at 6:37 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Mon, Aug 5, 2013 at 04:20:40PM +0900, Michael Paquier wrote:
>> Hi all,
>>
>> By having a look at the documentation of SELECT, it is not specified that FOR
>> SHARE/UPDATE and friends are incompatible with the clauses in $subject
>> http://www.postgresql.org/docs/9.2/static/sql-select.html
>> This restriction is explicitly cited for INTERSECT and UNION though, so people
>> can get easily confused IMHO for the other clauses.
>>
>> Does it make sense to mention in the documentation those limitations like in
>> the patch attached? If yes, perhaps this should be back-patched, after removing
>> the part about FOR NO KEY UPDATE and FOR KEY SHARE of course from the patch
>> attached for 9.2 and prior versions...
>> Regards,
>
> Patch applied. Thanks.
Thanks.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-01-31 23:00:05 Re: [GENERAL] Possible bug with row_to_json
Previous Message Michael Paquier 2014-01-31 22:48:05 Re: Regression tests failing if not launched on db "regression"