Re: Values list-of-targetlists patch for comments (was Re: [PATCHES]

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Values list-of-targetlists patch for comments (was Re: [PATCHES]
Дата
Msg-id 1CD9D95B-E824-4A0D-85BB-279AD06B931C@seespotcode.net
обсуждение исходный текст
Ответ на Re: Values list-of-targetlists patch for comments (was Re: [PATCHES]  (Joe Conway <mail@joeconway.com>)
Ответы Re: Values list-of-targetlists patch for comments (was Re:
Список pgsql-hackers
On Aug 2, 2006, at 12:47 , Joe Conway wrote:


> regression=# create rule r2 as on update to src do insert into log
> values(old.*, 'old'), (new.*, 'new');
> ERROR:  VALUES must not contain OLD or NEW references
>

Would it make sense to add a HINT as well, recommending the UNION  
construct Tom mentioned earlier?

On Aug 2, 2006, at 11:52 , Tom Lane wrote:

> create rule r2 as on update to src do
>     insert into log select old.*, 'old' union all new.*, 'new';
>
> or just use two separate INSERT commands in the rule.
>

Or is the general case too, uh, general for a HINT?

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: pg_dump dumping entire system catalogs
Следующее
От: "Adrian Maier"
Дата:
Сообщение: Re: float8 regression failure (HEAD, cygwin)