| From: | Andy Colson <andy(at)squeakycode(dot)net> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: check if the same function is already running, then exit! |
| Date: | 2015-01-26 20:05:07 |
| Message-ID: | 54C69DF3.1060305@squeakycode.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
On 1/26/2015 1:58 PM, Suresh Raja wrote:
> 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,
Advisory locks might work for you:
http://www.postgresql.org/docs/9.4/static/explicit-locking.html
(at the bottom of the page)
google will find other's talking about it: "postgres advisory lock"
-Andy
| From | Date | Subject | |
|---|---|---|---|
| Next Message | amihay gonen | 2015-01-26 20:29:40 | Re: Psql 9.4 with server 9.4 doesn't auto complete table names |
| Previous Message | Pavel Stehule | 2015-01-26 20:03:01 | Re: How to access large objects in Postgresql c-language functions? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David G Johnston | 2015-01-28 16:55:00 | Re: How to insert in a table the error returns by query |
| Previous Message | Pavel Stehule | 2015-01-26 20:01:48 | Re: check if the same function is already running, then exit! |