pgsql: Use add_size/mul_size for index instrumentation size calculation

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use add_size/mul_size for index instrumentation size calculation
Date: 2026-04-07 11:05:57
Message-ID: E1wA4Fo-003NnO-1J@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use add_size/mul_size for index instrumentation size calculations

Use overflow-safe size arithmetic in the Index[Only]Scan and parallel
instrumentation functions, consistent with other executor nodes (Hash,
Sort, Agg, Memoize). This was an oversight in dd78e69cfc3.

Author: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Reviewed-by: Tomas Vondra <tomas(at)vondra(dot)me>
Reviewed-by: Lukas Fittl <lukas(at)fittl(dot)com>
Discussion: https://postgr.es/m/flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e%40vondra.me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/884f9b3c762f987ed6073303b597c110a4102fb7

Modified Files
--------------
src/backend/executor/nodeIndexonlyscan.c | 8 ++++----
src/backend/executor/nodeIndexscan.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-04-07 11:27:29 pgsql: Optimize sorting and deduplicating trigrams
Previous Message Álvaro Herrera 2026-04-07 10:32:50 pgsql: Allow logical replication snapshots to be database-specific