pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: why Sequencial Scan when selecting on primary key of table?
Date: Sat, 31 May 2003 14:02:35 -0400
Message-ID: <20030531180235.GF22469@libertyrms.info> (raw)
In-Reply-To: <000001c3279c$79dc2d80$01000001@trouble>
References: <21073.1054401227@sss.pgh.pa.us>
	<000001c3279c$79dc2d80$01000001@trouble>

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@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (8+ messages)  latest in thread

Message-ID: <20030531180235.GF22469@libertyrms.info>
Permalink:  ../20030531180235.GF22469@libertyrms.info/
Also on:    postgresql.org/message-id/20030531180235.GF22469@libertyrms.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: why Sequencial Scan when selecting on primary key of table?
  In-Reply-To: <20030531180235.GF22469@libertyrms.info>
  References: <21073.1054401227@sss.pgh.pa.us> <000001c3279c$79dc2d80$01000001@trouble> <20030531180235.GF22469@libertyrms.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox