Re: [SQL] check if the same function is already running, then exit!

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [SQL] check if the same function is already running, then exit!
Дата
Msg-id CAFj8pRBQe6zcmnXpbB0wmVyGR4NDZ5j06Bi9z6j=93wSBGHSug@mail.gmail.com
обсуждение исходный текст
Ответ на check if the same function is already running, then exit!  (Suresh Raja <suresh.rajaabc@gmail.com>)
Список pgsql-general
Hi

you can use a advisory locks for singleton implementation

http://www.postgresql.org/docs/9.4/static/functions-admin.html#FUNCTIONS-ADVISORY-LOCKS

Regards

Pavel

2015-01-26 20:58 GMT+01:00 Suresh Raja <suresh.rajaabc@gmail.com>:
Before running a running a function, i would check only 1 instance is running.  If alreaady a function is running, the existing function should exist with the msg that already a function with same is running.

If somebody has already used such a faeture, can u please share or 
Can you tell me the table and column from which I could this info.

Thanks,

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: How to access large objects in Postgresql c-language functions?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to access large objects in Postgresql c-language functions?