Re: RETURNING and DO INSTEAD ... Intentional or not?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: RETURNING and DO INSTEAD ... Intentional or not?
Дата
Msg-id 200709121058.02019.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: RETURNING and DO INSTEAD ... Intentional or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom,

> What the RETURNING clause in the rule does is let you define the data
> that should be returned if the rewritten INSERT had a returning clause
> to start with.

Hmmm.  Aha, that works:

postgres=# insert into test values ( 'mary' ) returning test1;test1
-------mary

So, this should probably be documented to avoid confusion like mine.  Will 
write something up ...

-- 
Josh Berkus
PostgreSQL @ Sun
San Francisco


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: RETURNING and DO INSTEAD ... Intentional or not?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: RETURNING and DO INSTEAD ... Intentional or not?