| От | Tom Lane |
|---|---|
| Тема | Re: Using results from DELETE ... RETURNING |
| Дата | |
| Msg-id | 5603.1244348996@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Using results from DELETE ... RETURNING (David Fetter <david@fetter.org>) |
| Ответы |
Re: Using results from DELETE ... RETURNING
|
| Список | pgsql-general |
David Fetter <david@fetter.org> writes:
> Would it be super-complicated to do this with CTEs for 8.5? They seem to
> have sane properties like getting executed exactly once.
Hmm, interesting thought. The knock against doing RETURNING as an
ordinary subquery is exactly that you can't disentangle it very well
from the upper query (and thus, it's hard to figure out when to fire
triggers, to take just one problem). But we've defined CTEs much more
restrictively, so maybe the problems can be solved in that context.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера