Replace XLOG_INCLUDE_XID flag with a more localized flag.
Amit Kapila <akapila@postgresql.org>
Replace XLOG_INCLUDE_XID flag with a more localized flag. Commit 0bead9af484c introduced XLOG_INCLUDE_XID flag to indicate that the WAL record contains subXID-to-topXID association. It uses that flag later to mark in CurrentTransactionState that top-xid is logged so that we should not try to log it again with the next WAL record in the current subtransaction. However, we can use a localized variable to pass that information. In passing, change the related function and variable names to make them consistent with what the code is actually doing. Author: Dilip Kumar Reviewed-by: Alvaro Herrera, Amit Kapila Discussion: https://postgr.es/m/E1mSoYz-0007Fh-D9@gemulon.postgresql.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +53 −50 |
| src/backend/access/transam/xlog.c | modified | +12 −1 |
| src/backend/access/transam/xloginsert.c | modified | +13 −13 |
| src/include/access/xact.h | modified | +2 −2 |
| src/include/access/xlog.h | modified | +2 −2 |
Discussion
- pgsql: Document XLOG_INCLUDE_XID a little better 29 messages · 2021-09-21 → 2021-11-03