Improve dropping of tables in PostgreSQL