Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table - Mailing list pgsql-general

From Richard Huxton
Subject Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table
Date
Msg-id 4716646E.30809@archonet.com
Whole thread Raw
In response to Poor Plan selected w/ not provided a date/time but selecting date/time from a table  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Responses Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table
List pgsql-general
Ow Mun Heng wrote:
> Query2 is way faster mainly because the plan does not choose a seq scan
> on a table w/ >20million rows.
> The only difference between Query 1 and query 2 is that the
> audio_key_dtime is chosen from a table rather than provided on the
> query.
>
> I'm not sure why this is the case and why it chooses such plans.
> (should I be posting to pg-performance?)

Your query plans don't seem to match your queries. That makes it
difficult to provide meaningful advice.


--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Josh Trutwin
Date:
Subject: Re: Array intersection
Next
From: "Pavel Stehule"
Date:
Subject: Re: Array intersection