Re: Patch to improve performance of replay of AccessExclusiveLock
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndquadrant.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-03-18T08:59:11Z
Lists: pgsql-hackers
On 16 March 2017 at 09:52, David Rowley <david.rowley@2ndquadrant.com> wrote: >> Seemed easier to write it than explain further. Please see what you think. > > > Thanks. I had been looking for some struct to store the flag in. I'd not > considered just adding a new global variable. As Amit says, I don't see the gain from adding that to each xact state. I'd suggest refactoring my patch so that the existign MyXactAccessedTempRel becomes MyXactFlags and we can just set a flag in the two cases (temp rels and has-aels). That way we still have one Global but it doesn't get any uglier than it already is. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Move RecoveryLockList into a hash table.
- a40cff8956e8 11.0 landed
- 35750a38b7ab 9.6.10 landed
- c4ccbcc1a2a1 9.4.19 landed
- 12f7d91994d1 9.3.24 landed
- 7bcda60d41cb 9.5.14 landed
- 88554c091101 10.5 landed