Re: executing a procedure with delay

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Ottavio Campana" <ottavio(at)campana(dot)vi(dot)it>
Cc: "General PostgreSQL List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: executing a procedure with delay
Date: 2007-12-12 13:43:55
Message-ID: 162867790712120543m54d31037y1aca0e5cd59e1e20@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

you can use pg_sleep function. But using it in trigger is ugly,
because transaction stay in open state. Look to orafce on intersession
communication. Maybe you can use it.

http://www.pgsql.cz/index.php/Oracle_functionality_%28en%29

Regards
Pavel Stehule

On 12/12/2007, Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> wrote:
> I'd like to execute a stored procedure in postgresql one minute after a
> table has been modified. In case there are two changes in less than one
> minute, I want to reset the time that has to be waited before running
> the procedure.
>
> I think I need to use a trigger, but I don't know how...
>
> Can you help me please?
>
> --
> Non c'e' piu' forza nella normalita', c'e' solo monotonia.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2007-12-12 13:48:04 Re: Instaltiating an ARRAY within a function
Previous Message Richard Huxton 2007-12-12 13:41:19 Re: POSIX and libpq