postgresql/src
Heikki Linnakangas 366dcdaf57 Clarify comment on multixid offset wraparound check
Coverity complained that offset cannot be 0 here because there's an
explicit check for "offset == 0" earlier in the function, but it
didn't see the possibility that offset could've wrapped around to 0.
The code is correct, but clarify the comment about it.

The same code exists in backbranches in the server
GetMultiXactIdMembers() function and in 'master' in the pg_upgrade
GetOldMultiXactIdSingleMember function. In backbranches Coverity
didn't complain about it because the check was merely an assertion,
but change the comment in all supported branches for consistency.

Per Tom Lane's suggestion.

Discussion: https://www.postgresql.org/message-id/1827755.1765752936@sss.pgh.pa.us
2025-12-15 11:47:04 +02:00
..
backend Fix typo in tablecmds.c 2025-12-15 17:17:04 +13:00
bin Clarify comment on multixid offset wraparound check 2025-12-15 11:47:04 +02:00
common Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
fe_utils Add ParallelSlotSetIdle(). 2025-12-09 13:34:22 -06:00
include Allow cumulative statistics to read/write auxiliary data from/to disk 2025-12-15 09:40:56 +09:00
interfaces libpq: Authorize pthread_exit() in libpq_check 2025-12-10 13:56:33 +09:00
makefiles Fix meson warning due to missing declaration of NM 2025-12-10 08:10:28 +09:00
pl Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
port Fix O_CLOEXEC flag handling in Windows port. 2025-12-10 09:01:35 +13:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Add retry logic to pg_sync_replication_slots(). 2025-12-15 02:50:21 +00:00
timezone Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
tools Allow cumulative statistics to read/write auxiliary data from/to disk 2025-12-15 09:40:56 +09:00
tutorial Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in libpq: Refactor logic checking for exit() in shared library builds 2025-12-09 10:39:08 +09:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00