Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 2C6009FB2AF for ; Thu, 2 Nov 2006 15:03:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 43592-02 for ; Thu, 2 Nov 2006 19:03:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from inetserver.servicepaper.com (67.105.202.226.ptr.us.xo.net [67.105.202.226]) by postgresql.org (Postfix) with ESMTP id 9A3C79FB2A7 for ; Thu, 2 Nov 2006 15:03:01 -0400 (AST) Received: from [192.168.10.100] ([192.168.10.100]) by inetserver.servicepaper.com (8.11.6/8.11.6) with ESMTP id kA2J2xE09781 for ; Thu, 2 Nov 2006 11:03:00 -0800 Message-ID: <454A40E3.40007@nwlink.com> Date: Thu, 02 Nov 2006 11:02:59 -0800 From: Glen Parker User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: Is there anyway to... References: <20061102171624.GE21312@localhost> <454A357E.6010409@linuxlouis.net> <454A394C.7020102@zijn-digital.com> <454A3EB6.8080806@linuxlouis.net> In-Reply-To: <454A3EB6.8080806@linuxlouis.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/110 X-Sequence-Number: 103206 louis gonzales wrote: > Hey Brian, > Yeah I had considered this, using cron, I just feel like that is too dirty. > > Actually I didn't see Andreas' post, can someone forward that? > > I'm running this application on Solaris 9. Ultimately what I want to > know is, is there something that is internal to postgresql that can be > used that doesn't need external action, to make it do some task? > > Some built in function that can be set to do some simple task on a daily > - or other time - interval, where all of the defined users may not have > any activity with the database for day's or week's at a time, but this > builtin function still operates? > > Am I making any sense with how I'm asking this? I could of course have > cron do a scheduled task of checking/incrementing/decrementing and > define triggers to occur when one of the cron delivered actions sets the > appropriate trigger off, but are there other methods that are standard > in the industry or are we stuck with this type of external influence? Just some commentary... This is exactly the sort of thing cron is for. Duplicating that functionality in the RDBMS would be silly IMO. I don't see why you could consider cron to be "dirty" for this application... -Glen