Re: "stored procedures"

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: "stored procedures"
Дата
Msg-id 1303755538.5006.52.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на "stored procedures"  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: "stored procedures"  (Andrew Dunstan <andrew@dunslane.net>)
Re: "stored procedures"  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
On tor, 2011-04-21 at 18:24 +0300, Peter Eisentraut wrote:
> So the topic of "real" "stored procedures" came up again.  Meaning a
> function-like object that executes outside of a regular transaction,
> with the ability to start and stop SQL transactions itself.

I would like to add a note about the SQL standard here.

Some people have been using terminology that a "function" does this and
a "procedure" does something else.  Others have also mentioned the use
of a CALL statement to invoke procedures.

Both procedures (as in CREATE PROCEDURE etc.) and the CALL statement are
specified by the SQL standard, and they make no mention of any
supertransactional behavior or autonomous transactions for procedures.
As far as I can tell, it's just a Pascal-like difference that functions
return values and procedures don't.

So procedure-like objects with a special transaction behavior will need
a different syntax or a syntax addition.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unfriendly handling of pg_hba SSL options with SSL off
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Unlogged tables, persistent kind