Re: SQL stupid query plan... terrible performance ! - Mailing list pgsql-performance

From Klint Gore
Subject Re: SQL stupid query plan... terrible performance !
Date
Msg-id 40DFACD5345.1020KG@129.180.47.120
Whole thread Raw
In response to Re: SQL stupid query plan... terrible performance !  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SQL stupid query plan... terrible performance !
List pgsql-performance
On Sun, 27 Jun 2004 23:29:46 -0400, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Jim <jim.jim@wp.pl> writes:
> > I have one performance issue... and realy have no idea what's going on...
>
> [yawn...]  Cast the constants to bigint.  See previous discussions.
>
>             regards, tom lane

Would there be any way of adding some sort of indicator to the plan as
to why sequential was chosen?

eg
   Seq Scan on upload (type mismatch) (cost....)
   Seq Scan on upload (statistics) (cost....)
   Seq Scan on upload (catch-all) (cost....)

klint.

+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : kg@kgb.une.edu.au           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgres 7.4 at 100%
Next
From: Tom Lane
Date:
Subject: Re: SQL stupid query plan... terrible performance !