Re: Poor Performance on Postgres 8.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pallav Kalva <pkalva(at)deg(dot)cc>
Cc: PERFORM <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Poor Performance on Postgres 8.0
Date: 2005-01-28 20:50:42
Message-ID: 25930.1106945442@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I was able to duplicate this behavior with dummy data that had only a
few distinct values for fknamestringid --- the planner then thinks that
the index probe into attribute will match a lot of rows and hence take a
long time. Could we see your pg_stats row for fknamestringid, ie

select * from pg_stats
where tablename = 'attribute' and attname = 'fknamestringid';

It would be interesting to see the same for your 7.4 installation too.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Pallav Kalva 2005-01-28 20:58:19 Re: Poor Performance on Postgres 8.0
Previous Message Kevin Brown 2005-01-28 20:46:10 Re: PostgreSQL clustering VS MySQL clustering