Re: Poor Performance on Postgres 8.0 - Mailing list pgsql-performance

From Tom Lane
Subject Re: Poor Performance on Postgres 8.0
Date
Msg-id 25930.1106945442@sss.pgh.pa.us
Whole thread Raw
In response to Re: Poor Performance on Postgres 8.0  (Pallav Kalva <pkalva@deg.cc>)
Responses Re: Poor Performance on Postgres 8.0
List 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

pgsql-performance by date:

Previous
From: Kevin Brown
Date:
Subject: Re: PostgreSQL clustering VS MySQL clustering
Next
From: Pallav Kalva
Date:
Subject: Re: Poor Performance on Postgres 8.0