Postgresql "FIFO" Tables, How-To ?

Поиск
Список
Период
Сортировка
От Kirill Ponazdyr
Тема Postgresql "FIFO" Tables, How-To ?
Дата
Msg-id 2561.192.168.1.3.1058371173.squirrel@www.codeangels.com
обсуждение исходный текст
Ответы Re: Postgresql "FIFO" Tables, How-To ?  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Re: Postgresql "FIFO" Tables, How-To ?  (Dennis Gearon <gearond@cvc.net>)
Re: Postgresql "FIFO" Tables, How-To ?  ("Shridhar Daithankar" <shridhar_daithankar@persistent.co.in>)
Re: Postgresql "FIFO" Tables, How-To ?  (greg@turnstep.com)
Список pgsql-general
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 ?

Regards

Kirill

--
Kirill Ponazdyr
Technical Director
Codeangels Solutions GmbH
Tel: +41 (0)43 844 90 10
Fax: +41 (0)43 844 90 12
Web: www.codeangels.com

В списке pgsql-general по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Firebird vrs Postgresql
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: Reverse compatibility