Re: Can't use WITH in a PERFORM query in PL/pgSQL?
| От | Valentine Gogichashvili |
|---|---|
| Тема | Re: Can't use WITH in a PERFORM query in PL/pgSQL? |
| Дата | |
| Msg-id | CAP93muVCKvMGFzzRzZmQ3t_4JVeOEj5VUVZimaSr8J3QMQZ7Mw@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Can't use WITH in a PERFORM query in PL/pgSQL? (Merlin Moncure <mmoncure@gmail.com>) |
| Ответы |
Re: Can't use WITH in a PERFORM query in PL/pgSQL?
|
| Список | pgsql-bugs |
>
>
> >>
> >> it would be really a good idea to allow SELECT without INTO in plpgsql.
> >
> > SELECT without INTO is useless in plpgsql - because you have to drop
> result.
>
> not if you're calling a function:
> select func();
>
> or calling bunch of functions:
SELECT func(param) FROM some_subselect_with_params;
or if you do not have writable CTEs yet and have a dream of calling
something like:
INSERT INTO some_table_with_data ...
RETURNING func(some_generated_field);
And, ernestly, if it were useless to have SELECT without INTO in plpgsql,
there also would be no PERFORM command in plpgsql...
Best regards,
-- Valentine Gogichashvili
В списке pgsql-bugs по дате отправления: