Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan

From: Mark Rostron <mrostron(at)ql2(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Date: 2011-02-14 04:17:01
Message-ID: FD020D3E50E7FA479567872E5F5F31E3046520C465@ex01.corp.ql2.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I found the difference.
Random_page_cost is 1 in the production 8.3.10, I guess weighting the decision to use "index scan".
Thanks for the replies, gentlemen.

> If you diff the postgresql.conf files for both installs, what's different?

In the list below, 8.3.10 parameter value is in the clear, (8.3.14 is in brackets)

Max_fsm_pages 819200 vs (204800)
Max_fsm_relations 4000 vs (dflt 1000)
Synchronous_commit off vs (dflt on)
Wal_buffers 256kb vs (dflt 64kb)
Checkpoint_segments 128 vs (dflt 3)
Random_page_cost 1 vs (dflt 4) #!!! Actually this is the difference in the explain plans
Constraint_exclusion on vs (dflt off)
.... a bunch of logging parameters have been set ....
Autovacuum_freeze_max_age 900000000 vs (dflt 200000000)
vacuum_freeze_min_age = 50000000 vs (dflt 100000000)
deadlock_timeout = 20s (vs dflt 1s)
add_missing_from = on (vs dflt off)

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Rostron 2011-02-14 04:40:20 Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Previous Message Greg Smith 2011-02-14 02:33:39 Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan