Re: Postgresql "FIFO" Tables, How-To ?

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pg_general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgresql "FIFO" Tables, How-To ?
Date: 2003-07-16 18:41:45
Message-ID: 20030716184145.GY30373@libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 16, 2003 at 01:33:35PM -0500, Leon Oosterwijk wrote:
> store 10mil+ syslog messages this might not be the right tool. I'm just
> mentioning it because it perhaps the way the rrd keeps track of wrap-around
> might be a good way to implement this in postgres.

Hmm. Using the cycling feature of a sequence, couldn't you create a
trigger which either inserts (if, e.g., the value of the trigger is
not there) or updates (if the value of the trigger is there)? I'm
not sure how to do it efficiently, but I haven't thought about it
very much.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gould 2003-07-16 18:58:58 Re: COPY problem
Previous Message Lauren Matheson 2003-07-16 18:38:15 changing an update via rules - caught in recursion