diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-02-29 12:19:52 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-02-29 12:19:52 +0100 |
commit | a30a305584b81fd25eb890337ebec53acfbdc96b (patch) | |
tree | ceaca40039afea399b5df09266dd7a55e5788b81 /src/backend/executor/nodeModifyTable.c | |
parent | 17db5436efb063fc43d0f539bc2f1d0f46fda3d8 (diff) | |
download | postgresql-a30a305584b81fd25eb890337ebec53acfbdc96b.tar.gz postgresql-a30a305584b81fd25eb890337ebec53acfbdc96b.zip |
Fix integer underflow in shared memory debugging
dsa_dump would print a large negative number instead of zero for
segment bin 0. Fix by explicitly checking for underflow and add
special case for bin 0. Backpatch to all supported versions.
Author: Ian Ilyasov <ianilyasov@outlook.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/GV1P251MB1004E0D09D117D3CECF9256ECD502@GV1P251MB1004.EURP251.PROD.OUTLOOK.COM
Backpatch-through: v12
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions