Re: Chapter 14.1.1, small typo on costs?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: github(at)jurr(dot)org
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Chapter 14.1.1, small typo on costs?
Date: 2020-10-25 19:16:13
Message-ID: 572473.1603653373@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)org> writes:
> I am reading 14.1.1 and at the very end (just before 14.1.2) I see:

> "which shows that the planner thinks that sorting onek by index-scanning is
> about 12% more expensive than sequential-scan-and-sort."

> I feel that 12% is incorrect, but I'm not quite sure. The costs are 268.19
> and 292.65, and that's about 9% more expensive?

No, the comparison this has in mind is 224.79 (the indexscan on onek
in the last plan) versus 200.33 (the sort on onek in the previous plan).
So 12% is about right.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jürgen Purtz 2020-10-26 13:33:35 Re: Additional Chapter for Tutorial
Previous Message PG Doc comments form 2020-10-25 11:07:28 Chapter 14.1.1, small typo on costs?