Use more consistent *GetDatum() macros for some unsigned numbers
Michael Paquier <michael@paquier.xyz>
Use more consistent *GetDatum() macros for some unsigned numbers This patch switches some code paths to use GetDatum() macros more in line with the data types of the variables they manipulate. This set of changes does not fix a problem, but it is always nice to be more consistent across the board. Author: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Roman Khapov <rkhapov@yandex-team.ru> Reviewed-by: Yuan Li <carol.li2025@outlook.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Man Zeng <zengman@halodbtech.com> Discussion: https://postgr.es/m/CALdSSPidtC7j3MwhkqRj0K2hyp36ztnnjSt6qzGxQtiePR1dzw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/btreefuncs.c | modified | +1 −1 |
| contrib/pageinspect/ginfuncs.c | modified | +1 −1 |
| contrib/pageinspect/gistfuncs.c | modified | +2 −2 |
| contrib/pg_buffercache/pg_buffercache_pages.c | modified | +1 −1 |
| src/backend/access/brin/brin_inclusion.c | modified | +1 −1 |
| src/backend/access/brin/brin_minmax.c | modified | +1 −1 |
| src/backend/access/brin/brin_minmax_multi.c | modified | +1 −1 |
| src/backend/access/gist/gistget.c | modified | +2 −2 |
| src/backend/utils/adt/lockfuncs.c | modified | +2 −2 |
Discussion
- Use correct macro for accessing offset numbers. 10 messages · 2026-01-11 → 2026-04-27