Move WAL sequence code into its own file
Michael Paquier <michael@paquier.xyz>
Move WAL sequence code into its own file This split exists for most of the other RMGRs, and makes cleaner the separation between the WAL code, the redo code and the record description code (already in its own file) when it comes to the sequence RMGR. The redo and masking routines are moved to a new file, sequence_xlog.c. All the RMGR routines are now located in a new header, sequence_xlog.h. This separation is useful for a different patch related to sequences that I have been working on, where it makes a refactoring of sequence.c easier if its RMGR routines and its core routines are split. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Discussion: https://postgr.es/m/aSfTxIWjiXkTKh1E@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/rmgrdesc/seqdesc.c | modified | +1 −1 |
| src/backend/access/transam/rmgr.c | modified | +1 −1 |
| src/backend/commands/Makefile | modified | +1 −0 |
| src/backend/commands/meson.build | modified | +1 −0 |
| src/backend/commands/sequence.c | modified | +2 −74 |
| src/backend/commands/sequence_xlog.c | added | +80 −0 |
| src/bin/pg_waldump/rmgrdesc.c | modified | +1 −1 |
| src/include/commands/sequence.h | modified | +0 −18 |
| src/include/commands/sequence_xlog.h | added | +45 −0 |
Discussion
- Move WAL/RMGR sequence code into its own file and header 6 messages · 2025-11-27 → 2025-12-01