Re: Large journal as psql table. Good idea? Triggering. - Mailing list pgsql-sql

From chester c young
Subject Re: Large journal as psql table. Good idea? Triggering.
Date
Msg-id 448237.8848.qm@web54314.mail.yahoo.com
Whole thread Raw
In response to Large journal as psql table. Good idea? Triggering.  (Bryce Nesbitt <bryce1@obviously.com>)
List pgsql-sql
> But I'm thinking that maybe it's a job for a database table.  Each
> new
> row would be written with a status (10="new").  And that the modem
> process would poll for new rows.  Problem is there will be lots of
> rows,
> but only a trivial few will be "new".  The huge index file and the
> polling seem like a drag on the database, unless there is a way to
> optimize.

create index <name> on <table>( <id> ) where status = 'new';

this index will be very fast.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


pgsql-sql by date:

Previous
From: "Phillip Smith"
Date:
Subject: Large journal as psql table. Good idea? Triggering.
Next
From: Dmitry Turin
Date:
Subject: Fwd: Re[2]: We all are looped on Internet: request + transport = invariant