Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan - Mailing list pgsql-performance

From Mark Rostron
Subject Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Date
Msg-id FD020D3E50E7FA479567872E5F5F31E3046520C465@ex01.corp.ql2.com
Whole thread Raw
In response to Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan  (Scott Marlowe <scott.marlowe@gmail.com>)
List 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)




pgsql-performance by date:

Previous
From: Greg Smith
Date:
Subject: Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Next
From: Mark Rostron
Date:
Subject: Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan