pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jamal Ghaffour <Jamal.Ghaffour@elios-informatique.fr>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: The trigger can be specified to fire on time condition?
Date: Mon, 27 Feb 2006 14:10:07 -0300
Message-ID: <20060227171007.GD6490@surnet.cl> (raw)
In-Reply-To: <44033246.9030808@elios-informatique.fr>
References: <44033246.9030808@elios-informatique.fr>

Jamal Ghaffour wrote:
> Hi All,
> I ' m using the postgresql datbase to stores cookies. Theses cookies 
> become invalid after  30 mn and have to be deleted. i have defined a 
> procedure that will
> delete all invalid cookies, but i don't know how to call it in loop way 
> (for example each hour).
> I think that it  possible  because this behaivor is the same of the 
> autovaccum procedure that handle the vaccum process every time (60s in 
> default way).
> After reading the documentation, it seems  that triggers can't handle 
> this stuff .
> how can i resolve the problem ?

Use your system's crontab!  (On Windows, "scheduled tasks" or whatever).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (3+ messages)  latest in thread

Message-ID: <20060227171007.GD6490@surnet.cl>
Permalink:  ../20060227171007.GD6490@surnet.cl/
Also on:    postgresql.org/message-id/20060227171007.GD6490@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, Jamal.Ghaffour@elios-informatique.fr
  Subject: Re: The trigger can be specified to fire on time condition?
  In-Reply-To: <20060227171007.GD6490@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox