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

From Nigel J. Andrews
Subject Re: Postgresql "FIFO" Tables, How-To ?
Date
Msg-id Pine.LNX.4.21.0307161705430.27661-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to Postgresql "FIFO" Tables, How-To ?  ("Kirill Ponazdyr" <softlist@codeangels.com>)
Responses Re: Postgresql "FIFO" Tables, How-To ?  ("Kirill Ponazdyr" <softlist@codeangels.com>)
List pgsql-general
On Wed, 16 Jul 2003, Kirill Ponazdyr wrote:

> Hello,
>
> We are currently working on a project where we need to limit number of
> records in a table to a certain number. As soon as the number has been
> reached, for each new row the oldest row should be deleted (Kinda FIFO),
> thus keeping a total number of rows at predefined number.
>
> The actual limits would be anywhere from 250k to 10mil rows per table.
>
> It would be great if this could be achieved by RDBMS engine itself, does
> Postgres supports this kind of tables ? And if not, what would be the most
> elegant soluion to achieve our goal in your oppinion ?
>

An after insert trigger springs to mind.


--
Nigel Andrews



pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: Reverse compatibility
Next
From: Reynard Hilman
Date:
Subject: how to get table information from php client ?