Skip site navigation (1) Skip section navigation (2)

Re: PG does not use my index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rickard Sjöström <rickard(dot)sjostrom(at)bluebottle(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PG does not use my index
Date: 2007-04-02 16:05:17
Message-ID: 10497.1175529917@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Rickard =?iso-8859-1?b?U2r2c3Ry9m0=?= <rickard(dot)sjostrom(at)bluebottle(dot)com> writes:
> fast db:
> -------------------------
>  ->  Index Scan using testcase_b_bid_index on testcase  (cost=0.00..1656.82 rows=426 width=38) (never executed)"
> -------------------------

> slow db:
> -------------------------
> ->  Seq Scan on testcase  (cost=0.00..2896.42 rows=33242 width=64) (actual time=77.027..791.014 rows=37093 loops=1)"
> -------------------------

Let's see the query and the *whole* explain analyze output, not the part
you (mistakenly) think is important.

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2007-04-02 16:22:39
Subject: Re: Dumping views, functions, ...
Previous:From: David BrainDate: 2007-04-02 15:58:25
Subject: Re: [GENERAL] Increasing the shared memory

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group