Experimental evaluation of PostgreSQL's query optimizer - Mailing list pgsql-hackers

From Viktor Leis
Subject Experimental evaluation of PostgreSQL's query optimizer
Date
Msg-id 56713428.3070401@in.tum.de
Whole thread Raw
Responses Re: Experimental evaluation of PostgreSQL's query optimizer  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Experimental evaluation of PostgreSQL's query optimizer  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-hackers
Hi,

We have recently performed an experimental evaluation of PostgreSQL's
query optimizer. For example, we measured the contributions of
cardinality estimation and the cost model on the overall query
performance. You can download the resulting paper here:
http://www.vldb.org/pvldb/vol9/p204-leis.pdf

Some findings:
1. Perhaps unsurprisingly, we found that cardinality
estimation is the biggest problem in query optimization.
2. The quality of Postgres' cardinality estimates is not generally worse
than that of the major commerical systems.
3. It seems to me that one obvious way to avoid many bad situations
would be to disable nested loop joins when the inner relation is NOT
an index scan.

I hope this will be of interest to some of you.

--

Viktor Leis



pgsql-hackers by date:

Previous
From: amul sul
Date:
Subject: Re: Passing initially_valid values instead of !skip_validation to StoreRelCheck() in AddRelationNewConstraints()
Next
From: Jesper Pedersen
Date:
Subject: Re: Additional LWLOCK_STATS statistics