Re: pgsql: Document XLOG_INCLUDE_XID a little better
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>,
Robert Haas <robertmhaas@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-10-21T05:50:23Z
Lists: pgsql-hackers
Attachments
- v5-0001-Replace-XLOG_INCLUDE_XID-flag-with-a-more-localiz.patch (text/x-patch) patch v5-0001
- 0001-Code-refactoring-move-unwanted-function-out-of-the-c.patch (text/x-patch) patch 0001
On Thu, Oct 21, 2021 at 9:11 AM Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Wed, Oct 20, 2021 at 8:49 PM Dilip Kumar <dilipbalaut@gmail.com> wrote: > > > > On Wed, Oct 20, 2021 at 7:09 PM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote: > > > > > > Does MarkTopTransactionIdLogged() have to be inside XLogInsertRecord's > > > critical section? > > > > I think this function is doing somewhat similar things to what we are > > doing in MarkCurrentTransactionIdLoggedIfAny() so put at the same > > place. But I don't see any reason for this to be in the critical > > section. > > > > Yeah, I also don't see any reason for this to be in the critical > section but it might be better to keep both together. So, if we want > to keep MarkTopTransactionIdLogged() out of the critical section in > this patch then we should move the existing function > MarkCurrentTransactionIdLoggedIfAny() in a separate patch so that > future readers doesn't get confused as to why one of these is in the > critical section and other is not. OTOH, we can move > MarkCurrentTransactionIdLoggedIfAny() out of the critical section in > this patch itself but that appears like an unrelated change and we may > or may not want to back-patch the same. > v5-0001, incorporates all the comment fixes suggested by Alvaro. and 0001 is an additional patch which moves MarkCurrentTransactionIdLoggedIfAny(), out of the critical section. -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Move MarkCurrentTransactionIdLoggedIfAny() out of the critical section.
- 335397456b7e 15.0 landed
-
Replace XLOG_INCLUDE_XID flag with a more localized flag.
- 71db6459e6e4 15.0 landed
-
Document XLOG_INCLUDE_XID a little better
- c1d1ae1db237 14.0 cited
- ade24dab97a2 15.0 cited
-
Immediately WAL-log subtransaction and top-level XID association.
- 0bead9af484c 14.0 cited