Re: why Sequencial Scan when selecting on primary key of table?

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: why Sequencial Scan when selecting on primary key of table?
Date: 2003-05-31 18:02:35
Message-ID: 20030531180235.GF22469@libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sat, May 31, 2003 at 01:45:50PM -0400, Brian Tarbox wrote:
> The primary key field is an integer and I have performed vacuum analyse but
> that does not seem to change anything.

int4? int8? int2? Makes a difference. Please post the results of
EXPLAIN ANALYSE on the query you're having trouble with, and someone
may be able to help you. (You'll need to show us the table, too.)

> I've also heard that postgres will not indexes when JOINing tables. Can
> that really be true??

No.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-05-31 18:12:30 Re: why Sequencial Scan when selecting on primary key of table?
Previous Message Tom Lane 2003-05-31 17:55:01 Re: why Sequencial Scan when selecting on primary key of table?