Re: Dyamic updates of NEW with pl/pgsql

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Dyamic updates of NEW with pl/pgsql
Дата
Msg-id b42b73151003120432j730c4cber502c6abfcf8fb6fb@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Dyamic updates of NEW with pl/pgsql  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On Thu, Mar 11, 2010 at 11:24 PM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> Merlin Moncure escribió:
>
>
>> (small aside: the other biggie would be able to push a composite type
>> in to an update statement...something like 'update foo set foo =
>> new').  This is really great...some variant of this question is
>> continually asked it seems.
>
> Can't you already do that with EXECUTE ... USING NEW?  hmm, ah, but you
> have to specify the columns in NEW, so it doesn't really work for you,
> does it?

right...with inserts you can expand the composite type without listing
the columns.  updates can't do it because of syntax issues, even if
you go dynamic.

merlin


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: walreceiver is uninterruptible on win32
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: invalid UTF-8 via pl/perl