Search Postgresql Archives

Re: When the trigger is called my application is awaiting the finish

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16 Dec 2010, at 18:13, felipe@xxxxxxxxxxxxxxxxx wrote:

> Hello, 
> I'm having a problem running an update command that invokes a trigger, the problem is that the function performed takes about 45 minutes to finish and my application is locked waiting for the finish. 
> You know how I can't wait for the end?

As usual, that depends. If running that function asynchronously from your update can not break referential integrity or cause dead-locks with your update (e.g. they aren't directly connected), then you can use LISTEN/NOTIFY to notify another process on a different connection that the function should be performed.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4d1473b6802655198511903!



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux