Re: UPDATE using sub selects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UPDATE using sub selects
Дата
Msg-id 6371.1174055854@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UPDATE using sub selects  (NikhilS <nikkhils@gmail.com>)
Ответы Re: UPDATE using sub selects  (NikhilS <nikkhils@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: My honours project - databases using dynamically attached entity-properties
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tsearch_core for inclusion