Re: [HACKERS] extension for sql update

Поиск
Список
Период
Сортировка
Искать
От
Florian G. Pflug
Тема
Re: [HACKERS] extension for sql update
Дата
Msg-id
44C8DEDB.9080408@phlo.org
Ответ на
Список
Дерево обсуждения
extension for sql update Susanne Ebrecht <miracee@miracee.de>
Re: extension for sql update Tom Lane <tgl@sss.pgh.pa.us>
Re: extension for sql update Susanne Ebrecht <miracee@miracee.de>
Re: extension for sql update Tom Lane <tgl@sss.pgh.pa.us>
Re: extension for sql update Susanne Ebrecht <miracee@miracee.de>
Re: [HACKERS] extension for sql update "Florian G. Pflug" <fgp@phlo.org>
Re: [HACKERS] extension for sql update Jim Nasby <jnasby@pervasive.com>
Re: [HACKERS] extension for sql update Bruce Momjian <bruce@momjian.us>
Re: extension for sql update Bruce Momjian <bruce@momjian.us>
Re: extension for sql update Tom Lane <tgl@sss.pgh.pa.us>
Re: extension for sql update Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] extension for sql update Robert Treat <xzilla@users.sourceforge.net>
Re: [HACKERS] extension for sql update Rod Taylor <pg@rbt.ca>
Re: [HACKERS] extension for sql update "Jim C. Nasby" <jnasby@pervasive.com>
Tom Lane wrote:
> Susanne Ebrecht  writes:
>> ... We could provide the mixed update syntax and leave the
>> typed row value expression for the next release. Do you agree?
> 
> I don't really see the point --- the patch won't provide any new
> functionality in anything like its current form, because you can
> always just write the separate expressions in the simple one to
> one way.  If we do offer the row-on-the-left syntax then people
> will try to put sub-selects on the right, and won't get anything
> beyond an unhelpful "syntax error" message.  So my vote would be
> to leave it alone until we have a more complete implementation.

It has the advantage that inserts and updates look more "alike".
If your sql statements are generated by code, then that removes
the need of a special case for updates.

greetings, Florian Pflug
В списке pgsql-patches по дате отправления
От: Darcy Buskermolen
Дата:
От: Jim Nasby
Дата:
FAQ