Move SQL-callable code related to multixacts into its own file
Michael Paquier <michael@paquier.xyz>
Move SQL-callable code related to multixacts into its own file A patch is under discussion to add more SQL capabilities related to multixacts, and this move avoids bloating the file more than necessary. This affects pg_get_multixact_members(). A side effect of this move is the requirement to add mxstatus_to_string() to multixact.h. Extracted from a larger patch by the same author, tweaked by me. Author: Naga Appani <nagnrik@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Discussion: https://postgr.es/m/CA+QeY+AAsYK6WvBW4qYzHz4bahHycDAY_q5ECmHkEV_eB9ckzg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/multixact.c | modified | +1 −65 |
| src/backend/utils/adt/Makefile | modified | +1 −0 |
| src/backend/utils/adt/meson.build | modified | +1 −0 |
| src/backend/utils/adt/multixactfuncs.c | added | +87 −0 |
| src/include/access/multixact.h | modified | +1 −0 |
Discussion
- [Proposal] Expose internal MultiXact member count function for efficient monitoring 42 messages · 2025-03-10 → 2026-04-13