Re: Postgresql "FIFO" Tables, How-To ? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Postgresql "FIFO" Tables, How-To ?
Date
Msg-id 20030716184145.GY30373@libertyrms.info
Whole thread Raw
In response to Re: Postgresql "FIFO" Tables, How-To ?  ("Leon Oosterwijk" <leon@isdn.net>)
Responses Re: Postgresql "FIFO" Tables, How-To ?  (Sean Chittenden <sean@chittenden.org>)
List 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@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: Lauren Matheson
Date:
Subject: changing an update via rules - caught in recursion
Next
From: "Darko Prenosil"
Date:
Subject: Re: Couple Postgres View Questions