Re: Query planner quirk? - Mailing list pgsql-general

From Tom Lane
Subject Re: Query planner quirk?
Date
Msg-id 23157.1018883148@sss.pgh.pa.us
Whole thread Raw
In response to Query planner quirk?  ("Dave Menendez" <dave@sycamorehq.com>)
List pgsql-general
"Dave Menendez" <dave@sycamorehq.com> writes:
> Any comments?

Can't say much useful with such a selective report.  It'd be interesting
to see the EXPLAIN output in all four cases (small bank_id list for both
index and seq scans, ditto for large bank_id list).  Also, I don't
believe the bank_id IN () part can contribute to the index condition,
so the critical number is how many rows will match just time_id = 'P_6'
and org_allow = 1.  How many such rows are there really, and how many
does the planner estimate (use EXPLAIN with just those clauses in
WHERE)?

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Loftis
Date:
Subject: Re: Why does postgres not take into account my index on a bigint column ?
Next
From: Michael Devogelaere
Date:
Subject: psql and passwords