Re: Wht the SEQ Scan ? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Wht the SEQ Scan ?
Date
Msg-id 20020914171825.S74003-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Wht the SEQ Scan ?  (Glen Eustace <geustace@godzone.net.nz>)
Responses Re: Wht the SEQ Scan ?  (Glen Eustace <geustace@godzone.net.nz>)
List pgsql-general
On 15 Sep 2002, Glen Eustace wrote:

> I know this is an FAQ, but each case seems to be different. I can not
> understand why the primary index on this table is not used.  It was
> specifically created to make this query run quickly.

The one in this case is probably the smallint/bigint problem with
constants being converted to int4 when unquoted.
Try client='10143' or client=CAST(10143 as smallint) in the where
clauses instead of client=10143 and see if that gives you usage of the
index.



pgsql-general by date:

Previous
From: Glen Eustace
Date:
Subject: Re: Panic - Format has changed
Next
From: Glen Eustace
Date:
Subject: Re: Wht the SEQ Scan ?