Daniel Bausch <DanielBausch@xxxxxx> writes: > does anybody know a paper (or any document but the code itself) containing a > description of the current cost model used by the query optimizer/planner. If you look on the project website you can find slides from various conference presentations that give overviews of the planner. But if you want details you'll have to read the code. It's at least moderately well commented, though. Most of the skeletons in this particular closet are in costsize.c and selfuncs.c. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general