Re: commit inside a function failing

Поиск
Список
Период
Сортировка
От ktm@rice.edu
Тема Re: commit inside a function failing
Дата
Msg-id 20150123200657.GZ5510@aart.rice.edu
обсуждение исходный текст
Ответ на commit inside a function failing  (Suresh Raja <suresh.rajaabc@gmail.com>)
Список pgsql-sql
On Fri, Jan 23, 2015 at 01:56:53PM -0600, Suresh Raja wrote:
> Hi All:
>
> We are running a function with a loop in it. We tried
> commit;
> We are getting error with above command.   How can i easily commit withing
> a function.
>
>
> Thanks,
> -SR

PostgreSQL functions run within a transaction. You would need to use
something like db_link.

Regards,
Ken


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: commit inside a function failing
Следующее
От: Jason Aleski
Дата:
Сообщение: Better way to compute moving averages?