Limit record count

Поиск
Список
Период
Сортировка
От Sean Z.
Тема Limit record count
Дата
Msg-id 229478.80511.qm@web45105.mail.sp1.yahoo.com
обсуждение исходный текст
Ответы Re: Limit record count  (Rodrigo Gonzalez <rjgonzale@gmail.com>)
Список pgsql-general
Hi,

I need to write a maintenance function to delete oldest records of a table, leaving only a certain number of records, say 50.  The task should run once per day.  How can I write it? 
The oldest record carries the smallest ID.

Thanks a lot!
Sean


Never miss a thing. Make Yahoo your homepage.

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: install problem
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: spreadsheet interface