Re: PL/pgSQL PERFORM with CTE
| От | Marko Tiikkaja |
|---|---|
| Тема | Re: PL/pgSQL PERFORM with CTE |
| Дата | |
| Msg-id | 5213600D.4090700@joh.to обсуждение исходный текст |
| Ответ на | Re: PL/pgSQL PERFORM with CTE (Pavel Stehule <pavel.stehule@gmail.com>) |
| Ответы |
Re: PL/pgSQL PERFORM with CTE
|
| Список | pgsql-hackers |
On 8/20/13 2:21 PM, Pavel Stehule wrote: > 2013/8/20 David E. Wheeler <david@justatheory.com> >> Well, there ought to be *some* way to tell PL/pgSQL to discard the result. >> Right now I am adding a variable to select into but never otherwise use. >> Inelegant, IMHO. Perhaps I’m missing some other way to do it? >> >> If so, it would help if the hint suggesting the use of PERFORM pointed to >> such alternatives. >> > > postgres=# DO $$ > BEGIN > PERFORM * FROM (WITH now AS (SELECT now()) > SELECT * from now) x; > END; > $$; > DO .. which doesn't work if you want to use table-modifying CTEs. Regards, Marko Tiikkaja
В списке pgsql-hackers по дате отправления: