From: Bryan Buchanan <bryanb@webbtide.com.au>
To: macky <macky@edsamail.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: Knowing new item in table...
Date: Fri, 03 Aug 2001 19:54:55 +1000
Message-ID: <3B6A74EF.17020C39@webbtide.com.au> (raw)
References: <006501c11bf5$f4b20750$5764a8c0@edsamail.com>
macky wrote:
> im still in the dark when it comes to postgres..... is there a way i can
> know if there was a new entry on a table...
>
> scenario...
>
> i have a script that runs every 5 minutes... that script checks if there's
> a new entry in that table... and if YES there's a new entry ill do some
> processing...
>
> is there an internal utility that i can use in postgres that can tell me
> that this rows a new commers... hehehe....
>
> if someone has other ideas on how to deal with this speak out...
>
> thanks in advance......
>
> btw..
> my idea is that that table will have an addtional column as reference
> lets say column "READ" 1 for yes 0 for NO
You could have a timestamp field with a default value of 'now' defined,
and have your script select all records from the table with a time after
5 minutes ago.
Bryan
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-sql@postgresql.org
Cc: bryanb@webbtide.com.au, macky@edsamail.com, pgsql-novice@postgresql.org
Subject: Re: Knowing new item in table...
In-Reply-To: <3B6A74EF.17020C39@webbtide.com.au>
* 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