commit inside plpgsql function

Поиск
Список
Период
Сортировка
От Dennis Sacks
Тема commit inside plpgsql function
Дата
Msg-id 41C85BAF.6000305@illusions.com
обсуждение исходный текст
Список pgsql-sql
Hi,

I am converting oracle stored procedures to plpgsql. There are several 
of the oracle procedures where a parameter vCommit is passed into the 
procedure and:

if vCommit = 1   then       commit;       do_something_commit(vdate);   else       do_something(vdate);   end if;

does this make sense in plpgsql? Does it make sense to do a commit in 
plpgsql?

Thanks,

Dennis


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

Предыдущее
От: "Iain"
Дата:
Сообщение: Re: I'm stumped
Следующее
От: "william lim"
Дата:
Сообщение: save sql result to file