Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > =?iso-8859-2?Q?...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3022 of 3160
Post > Topic >>

=?iso-8859-2?Q?Re:_Re:__Monitoring_new_records?=

by messias@[EMAIL PROTECTED] (=?iso-8859-2?Q?messias?=) Feb 29, 2008 at 08:06 AM

--- Sean Davis <sdavis2@[EMAIL PROTECTED]
> wrote (2008.02.28 22:56:08):
---



> 2008/2/28 messias <messias@[EMAIL PROTECTED]
>:

> > Hello

> >

> >

> >

> >  I am new in SQL programing and I have a problem. I would like

to

> >

> >  monitor the new records which is inserted into an SQL table.

> >

> >  I found some solution which mentioned a queue (log) table which

can

> >

> >  be filled by a trigger. The client would read from that queue

table,

> >

> >  and delete the readed data.

> >

> >  I think this solution can work with only one client.

> >

> >  But I would have more than one client at the same time, and I
do

not

> >

> >  know how I can delete the data from the queue table.

> >

> >  I can make queue table for every client, but I think this is
not

a

> >

> >  nice solution.

> >

> >  I am affraid of lost client....

> >

> >  I am intrested in every solution which can solve my problem.

> 

> Why not simply add a timestamp column to each row.  Then, your

client

> could query for all rows created or modified after a certain

> time/date.

Yes it can be a good solution, but that table can have more than

100000 records.



I don't think a trigger and a separate table would be

> necessary, but it is hard to know without more information.

> 

> Sean

> 



I think if I made a copy of the new records into a separate table
the

selection would be more efficient. However, somebody has to delete

from that table.



Ferenc



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match
 




 2 Posts in Topic:
=?iso-8859-2?Q?Re:_Re:__Monitoring_new_records?=
messias@[EMAIL PROTECTED]  2008-02-29 08:06:41 
Re: Monitoring new records
sdavis2@[EMAIL PROTECTED]  2008-02-29 06:07:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 18:51:59 CDT 2008.