pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Wong <postgresql@gremlins.com.hk>
To: macky <macky@edsamail.com>
To: pgsql-sql@postgresql.org
To: pgsql-novice@postgresql.org
Subject: Re: Knowing new item in table...
Date: Fri, 3 Aug 2001 16:56:14 +0800
Message-ID: <01ad01c11bfa$26e684e0$2300000a@gremlins.com.hk> (raw)
References: <006501c11bf5$f4b20750$5764a8c0@edsamail.com>

The best way to do this is probably have an auto-increment field in your
table. When your script runs it checks and stores the highest value in that
auto-increment field and compares with the value it had the previous time it
was run. It then returns all records greater than the previous value of the
auto-increment field.

regards
--
Jason Wong
Gremlins Associates

----- Original Message -----
From: macky <macky@edsamail.com>
To: <pgsql-sql@postgresql.org>; <pgsql-novice@postgresql.org>
Sent: Friday, August 03, 2001 4:26 PM
Subject: [NOVICE] Knowing new item in table...


> 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
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>




view thread (8+ messages)  latest in thread

Message-ID: <01ad01c11bfa$26e684e0$2300000a@gremlins.com.hk>
Permalink:  ../01ad01c11bfa$26e684e0$2300000a@gremlins.com.hk/
Also on:    postgresql.org/message-id/01ad01c11bfa$26e684e0$2300000a@gremlins.com.hk

 · 

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-sql@postgresql.org
  Cc: postgresql@gremlins.com.hk, macky@edsamail.com, pgsql-novice@postgresql.org
  Subject: Re: Knowing new item in table...
  In-Reply-To: <01ad01c11bfa$26e684e0$2300000a@gremlins.com.hk>

* 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