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;
delete from logtable where log_id in ( select log_id from logtable order by timestamp limit 10);