Limit record count - Mailing list pgsql-general

From Sean Z.
Subject Limit record count
Date
Msg-id 229478.80511.qm@web45105.mail.sp1.yahoo.com
Whole thread Raw
Responses Re: Limit record count
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: install problem
Next
From: "Dave Page"
Date:
Subject: Re: spreadsheet interface