pgsql: Extract the multiplier for CPU process cost of index page into a

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Extract the multiplier for CPU process cost of index page into a
Date: 2023-01-08 19:52:00
Message-ID: E1pEbi4-002gV8-34@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Extract the multiplier for CPU process cost of index page into a macro

B-tree, GiST and SP-GiST all charge 50.0 * cpu_operator_cost for processing
an index page. Extract this to a macro to avoid repeated magic numbers.

Discussion: https://mail.google.com/mail/u/0/?ik=a20b091faa&view=om&permmsgid=msg-f%3A1751459697261369543
Author: Ronan Dunklau

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eb5c4e953bbd2fab07be74df93f4080bab60176c

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-01-08 21:25:42 pgsql: Doc: improve commentary about providing our own definitions of M
Previous Message Andres Freund 2023-01-08 03:25:49 Re: pgsql: Delay commit status checks until freezing executes.