pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas

pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas

pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas

pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas

pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas

pgsql: Fix integer underflow in shared memory debugging

2024-02-29 Thread Daniel Gustafsson
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 Reviewed-by: Robert Haas