Re: SQL stored function inserting and returning data in a row.
| От | Daniel Caune |
|---|---|
| Тема | Re: SQL stored function inserting and returning data in a row. |
| Дата | |
| Msg-id | 1E293D3FF63A3740B10AD5AAD88535D206F41789@UBIMAIL1.ubisoft.org обсуждение исходный текст |
| Ответ на | Re: SQL stored function inserting and returning data in a row. (Gerardo Herzig <gherzig@fmed.uba.ar>) |
| Ответы |
Re: SQL stored function inserting and returning data in a row.
Re: SQL stored function inserting and returning data in a row. |
| Список | pgsql-sql |
> What about
> $$
> INSERT INTO .... ;
> select currval('seq_matchmaking_session_id');
> $$ language sql;
>
> ?
Indeed... :-( For some reason, I thought that it was not possible to
have to SQL statement in an SQL stored function.
By the way, is there any performance difference between pure SQL and
PL/pgSQL stored functions? If I remember correctly there was such a
distinction between pure SQL statement and PL/PLSQL stored procedures
(Oracle), in the sense that PL/PLSQL stored procedures are executed
within the PL/PLSQL engine which sends pure SQL statements to the SQL
engine for execution. There is a little overhead between PL/PLSQL and
SQL engines.
Regards,
--
Daniel
В списке pgsql-sql по дате отправления: