I\'m trying to port some old MySQL queries to PostgreSQL, but I\'m having trouble with this one:
DELETE FROM logtable ORDER BY timestamp LIMIT 10;
You could write a procedure which loops over the delete for individual lines, the procedure could take a parameter to specify the number of items you want to delete. But that's a bit overkill compared to MySQL.