Re: SUBTRANS: Minimizing calls to SubTransSetParent() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SUBTRANS: Minimizing calls to SubTransSetParent()
Date
Msg-id 1017593.1669746602@sss.pgh.pa.us
Whole thread Raw
In response to Re: SUBTRANS: Minimizing calls to SubTransSetParent()  (Simon Riggs <simon.riggs@enterprisedb.com>)
Responses Re: SUBTRANS: Minimizing calls to SubTransSetParent()
List pgsql-hackers
Simon Riggs <simon.riggs@enterprisedb.com> writes:
> New version of patch, now just a one-line patch!

Of course, there's all the documentation and comments that you falsified.
Also, what of the SubTransSetParent call in ProcessTwoPhaseBuffer?

(The one in ProcArrayApplyXidAssignment is actually okay, though the
comment making excuses for it no longer is.)

Also, if we're going to go over to a one-level structure in pg_subtrans,
we really ought to simplify the code in subtrans.c accordingly, and
get rid of the extra lookup currently done for the top parent's parent.

I still wonder whether we'll regret losing information about the
subtransaction tree structure, as discussed in the other thread [1].
That seems like the main barrier to proceeding with this.

            regards, tom lane

[1] https://www.postgresql.org/message-id/flat/CANbhV-HYfP0ebZRERkpt84ZCDsNX-UYJGYsjfS88jtbYzY%2BKcQ%40mail.gmail.com



pgsql-hackers by date:

Previous
From: Dimos Stamatakis
Date:
Subject: Re: Fix for visibility check on 14.5 fails on tpcc with high concurrency
Next
From: vignesh C
Date:
Subject: Re: Support logical replication of DDLs