Replacing old tuples on insert

Поиск
Список
Период
Сортировка
От Pradeepkumar, Pyatalo (IE10)
Тема Replacing old tuples on insert
Дата
Msg-id 77ED2BF75D59D1439F90412CC5B1097414FB13D1@ie10-sahara.hiso.honeywell.com
обсуждение исходный текст
Список pgsql-novice
Hi all,

I have a table as follows -
table TrendData( TrendID bigserial,
                 TrendName varchar(30),
                 .....
                 .....);

Now for this table i want a maximum of only 5000 tuples. After the
maximum is reached the new tuples that are inserted should replace the
older ones. Could anyone help me out in writing the query or a trigger
would also be fine.

Thanx and Regards,
Pradeep

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

Предыдущее
От: Kjetil Haaland
Дата:
Сообщение: Re: memory allocation in postgres
Следующее
От: "Pradeepkumar, Pyatalo (IE10)"
Дата:
Сообщение: Replacing old tuples on insert