X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2EF619DCA1C for ; Mon, 27 Feb 2006 13:10:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56438-08 for ; Mon, 27 Feb 2006 13:10:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by postgresql.org (Postfix) with ESMTP id 6A8C19DCA5E for ; Mon, 27 Feb 2006 13:10:08 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 27 Feb 2006 14:32:19 -0300 X-IronPort-AV: i="4.02,150,1139194800"; d="scan'208"; a="42000940:sNHT18416052" Received: from alvh.no-ip.org (201.220.123.141) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD0086CA42; Mon, 27 Feb 2006 14:10:07 -0300 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 72840C3A397; Mon, 27 Feb 2006 14:10:07 -0300 (CLST) Date: Mon, 27 Feb 2006 14:10:07 -0300 From: Alvaro Herrera To: Jamal Ghaffour Cc: postgres performance list Subject: Re: The trigger can be specified to fire on time condition? Message-ID: <20060227171007.GD6490@surnet.cl> Mail-Followup-To: Jamal Ghaffour , postgres performance list References: <44033246.9030808@elios-informatique.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44033246.9030808@elios-informatique.fr> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.724 required=5 tests=[AWL=-0.195, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.724 X-Spam-Level: * X-Archive-Number: 200602/419 X-Sequence-Number: 17405 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.