pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pallav Kalva <pkalva@deg.cc>
Cc: PERFORM <pgsql-performance@postgresql.org>
Subject: Re: Poor Performance on Postgres 8.0
Date: Fri, 28 Jan 2005 11:23:16 -0500
Message-ID: <2581.1106929396@sss.pgh.pa.us> (raw)
In-Reply-To: <41FA5726.7040502@deg.cc>
References: <41FA5726.7040502@deg.cc>

Pallav Kalva <pkalva@deg.cc> writes:
>      I  am running this query on postgres 8 beta version and it is not 
> using the right index, where as if i run the same query on postgres 7.4 
> version it uses the right  index .

1. Beta which, exactly?

2. Have you ANALYZEd both tables lately?

3. If so, try this to see what it thinks the cost of the reverse plan
is:

	begin;
	alter table common.string drop constraint pk_string_stringid;
	explain analyze ... same query ...
	rollback;

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <2581.1106929396@sss.pgh.pa.us>
Permalink:  ../2581.1106929396@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2581.1106929396@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pkalva@deg.cc
  Subject: Re: Poor Performance on Postgres 8.0
  In-Reply-To: <2581.1106929396@sss.pgh.pa.us>

* 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