PostgreSQL IN operator with subquery poor performance PostgreSQL IN operator with subquery poor performance postgresql postgresql