Re: Optimizer Selecting Incorrect Index - Mailing list pgsql-performance

From Tom Lane
Subject Re: Optimizer Selecting Incorrect Index
Date
Msg-id 2137.1093460881@sss.pgh.pa.us
Whole thread Raw
In response to Re: Optimizer Selecting Incorrect Index  (Richard Huxton <dev@archonet.com>)
Responses Re: Optimizer Selecting Incorrect Index  ("David Price" <dprice@dentfirst.com>)
List pgsql-performance
Richard Huxton <dev@archonet.com> writes:
> Things to check:
> 1. postgresql.conf settings match - different costs could cause this
> 2. statistics on the two columns (trn_patno,trn_old_date) - if they
> differ considerably between systems that would also explain it.

The different estimated row counts could only come from #2.  I suspect
David has forgotten to run ANALYZE on the second system.

I agree that EXPLAIN VERBOSE output is not helpful...

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: What is the best way to do attribute/values?
Next
From: Robert Treat
Date:
Subject: Anyone familiar with Apple Xserve RAID