postgresql/src/bin
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
..
initdb Improve TAP tests by replacing ok() with better Test::More functions 2025-10-17 14:39:09 +09:00
pg_amcheck amcheck: Improve confusing message 2025-07-01 12:24:17 +02:00
pg_archivecleanup Log a note at program start when running in dry-run mode 2025-11-18 16:13:29 +01:00
pg_basebackup Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
pg_checksums pg_checksums: Use new routine to retrieve data of PG_VERSION 2025-10-20 09:35:22 +09:00
pg_combinebackup Remove unnecessary casts in printf format arguments (%zu/%zd) 2025-12-09 07:33:08 +01:00
pg_config Translation updates 2025-05-05 12:04:49 +02:00
pg_controldata Widen MultiXactOffset to 64 bits 2025-12-09 13:53:03 +02:00
pg_ctl Remove useless casts in format arguments 2025-12-09 07:33:08 +01:00
pg_dump Remove unnecessary casts in printf format arguments (%zu/%zd) 2025-12-09 07:33:08 +01:00
pg_resetwal Never store 0 as the nextMXact 2025-12-12 10:47:34 +02:00
pg_rewind Clean up int64-related format strings 2025-12-09 07:33:08 +01:00
pg_test_fsync Use PGAlignedXLogBlock for some code simplification 2025-12-08 14:54:32 +01:00
pg_test_timing Include pg_test_timing's full output in the TAP test log. 2025-09-24 12:09:11 -04:00
pg_upgrade Clarify comment on multixid offset wraparound check 2025-12-15 11:47:04 +02:00
pg_verifybackup Use palloc_object() and palloc_array() in more areas of the tree 2025-12-09 14:53:17 +09:00
pg_waldump Fix some cases of indirectly casting away const. 2025-12-05 11:17:23 -05:00
pg_walsummary pg_walsummary: Improve stability of test checking statistics 2025-07-08 13:48:49 +09:00
pgbench Remove useless casts in format arguments 2025-12-09 07:33:08 +01:00
pgevent Update copyright for 2025 2025-01-01 11:21:55 -05:00
psql Implement ALTER TABLE ... SPLIT PARTITION ... command 2025-12-14 13:29:38 +02:00
scripts vacuumdb: Add --dry-run. 2025-12-09 13:34:22 -06:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00