Re: UPDATE using sub selects - Mailing list pgsql-hackers

From Tom Lane
Subject Re: UPDATE using sub selects
Date
Msg-id 6371.1174055854@sss.pgh.pa.us
Whole thread Raw
In response to Re: UPDATE using sub selects  (NikhilS <nikkhils@gmail.com>)
Responses Re: UPDATE using sub selects  (NikhilS <nikkhils@gmail.com>)
List pgsql-hackers
NikhilS <nikkhils@gmail.com> writes:
> To allow both of the above to hold, I think the subselect will have to be
> treated like a EXPR_SUBLINK subquery. I was wondering if we have a similar
> mechanism for plain selects/subselects to check and restrict their output to
> a single row.

No.  Offhand I think you'd either need to relax EXPR_SUBLINK to allow
multiple output columns, or invent a ROW_SUBLINK SubLinkType that is
just like EXPR_SUBLINK except for allowing multiple output columns.
The latter would probably be less likely to break other things...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: My honours project - databases using dynamically attached entity-properties
Next
From: Tom Lane
Date:
Subject: Re: tsearch_core for inclusion