PostgreSQL optimization + specs