Extract the multiplier for CPU process cost of index page into a macro
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 8 Jan 2023 19:37:33 +0000 (22:37 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 8 Jan 2023 19:37:33 +0000 (22:37 +0300)
commiteb5c4e953bbd2fab07be74df93f4080bab60176c
tree4627a7c3456c20b1c041755bc158e17f904b8e05
parent57d11ef028d126f95595c08c62ffb4c5147d0f86
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
src/backend/utils/adt/selfuncs.c