Transaction inside of functions

Поиск
Список
Период
Сортировка
От A B
Тема Transaction inside of functions
Дата
Msg-id dbbf25900805150632v58e16e0bl63a72795051a0ee0@mail.gmail.com
обсуждение исходный текст
Ответы Re: Transaction inside of functions  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice
Is it not possible to define  transactions inside of a function?
I guess you can do

BEGIN WORK;
select my_function()
COMMIT;

instead of defining the function
CREATE FUNCTION my_function()...
BEGIN
    BEGIN WORK;
    ....
    COMMIT;
END;

but what if you would like to do

CREATE FUNCTION my_function()...
BEGIN
    .... do stuff.....
    BEGIN WORK;
    ....
    COMMIT;
    do more stuff ....
END;

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

Предыдущее
От: "Greg Cocks"
Дата:
Сообщение: Re: Disadvantages to using "text" [ArcGIS]
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Transaction inside of functions