Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table

From: Richard Huxton <dev(at)archonet(dot)com>
To: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table
Date: 2007-10-17 19:37:18
Message-ID: 4716646E.30809@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2007-10-17 19:56:10 Re: Array intersection
Previous Message Josh Trutwin 2007-10-17 19:20:31 Re: Array intersection