From: chester c young <chestercyoung@yahoo.com>
To: Bryce Nesbitt <bryce1@obviously.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Large journal as psql table. Good idea? Triggering.
Date: Mon, 23 Apr 2007 17:56:19 -0700 (PDT)
Message-ID: <448237.8848.qm@web54314.mail.yahoo.com> (raw)
In-Reply-To: <462D3D4D.6090308@obviously.com>
> 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
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: chestercyoung@yahoo.com, bryce1@obviously.com
Subject: Re: Large journal as psql table. Good idea? Triggering.
In-Reply-To: <448237.8848.qm@web54314.mail.yahoo.com>
* 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