Re: wCTE behaviour
| От | Tom Lane |
|---|---|
| Тема | Re: wCTE behaviour |
| Дата | |
| Msg-id | 11483.1289771064@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: wCTE behaviour (Robert Haas <robertmhaas@gmail.com>) |
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Nov 14, 2010 at 1:51 PM, Yeb Havinga <yebhavinga@gmail.com> wrote:
>> What if CTE's ever get input parameters?
> Then they'd be functions, which we already have.
If you mean something like
prepare foo(int) as with x as (delete from tab where id = $1 returning *) insert into log_table select * from x;
I don't see that the parameter makes things any less well-defined.
If you mean a parameter in the sense of an executor parameter passed
in from a surrounding nestloop, that'd scare me too --- but I thought
we were going to disallow wCTEs except at the top level of a query,
so the case wouldn't arise.
regards, tom lane
В списке pgsql-hackers по дате отправления: