Faster PostgreSQL queries with targeted fixes.
Recent revisions are kept. Restoring one creates a new revision.