| От | Jeff Davis |
|---|---|
| Тема | Re: 8.2: select from an INSERT returning? |
| Дата | |
| Msg-id | 1158779058.30652.131.camel@dogma.v10.wvs обсуждение исходный текст |
| Ответ на | Re: 8.2: select from an INSERT returning? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On Wed, 2006-09-20 at 14:08 -0400, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > What would be involved in making INSERT/UPDATE/DELETE ... RETURNING be
> > on the same level as other table-like things such as VALUES (...),
> > ..., (...)?
>
> Getting rid of their side-effects, which of course ain't happening.
>
> The problem is the surrounding query might try to execute the command
> multiple times ... or not at all ... and what would you like that to
> mean?
>
Wouldn't that be the same as a volatile set-returning function? As I
understand it, 8.2 introduced a feature to prevent a volatile function
from being executed more times than it is listed in the query.
Regards,
Jeff Davis
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера