Re: simple select-statement takes more than 25 sec - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: simple select-statement takes more than 25 sec
Date
Msg-id 20041110114525.GB23500@uio.no
Whole thread Raw
In response to Re: simple select-statement takes more than 25 sec  (Cao Duy <cao.duy@1und1.com>)
List pgsql-performance
On Wed, Nov 10, 2004 at 12:22:17PM +0100, Cao Duy wrote:
> there is an index on customer_id
>
> create table customer(
> ...
> CONSTRAINT customer_pkey PRIMARY KEY (customer_id),
> ...
> )

Oh, sorry, I missed it among all the foreign keys. :-) Anyhow, as others have
pointed out, try doing a select against 5::bigint instead of just 5 (which is
an integer).

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Cao Duy
Date:
Subject: Re: simple select-statement takes more than 25 sec
Next
From: Jeff
Date:
Subject: Re: Need advice on postgresql.conf settings