Use add_size/mul_size for index instrumentation size calculations
Tomas Vondra <tomas.vondra@postgresql.org>
Author:
Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2026-04-07T10:47:28Z
Releases:
19 (unreleased)
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@gmail.com> Reviewed-by: Tomas Vondra <tomas@vondra.me> Reviewed-by: Lukas Fittl <lukas@fittl.com> Discussion: https://postgr.es/m/flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e%40vondra.me
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeIndexonlyscan.c | modified | +4 −4 |
| src/backend/executor/nodeIndexscan.c | modified | +4 −4 |
Discussion
Cited messages not in the archive:
flat/a177a6dd-240b-455a-8f25-aca0b1c08c6e@vondra.me