Re: use `proc->pgxactoff` as the value of `index` in `ProcArrayRemove()`

盏一 <w@hidva.com>

From: 盏一 <w@hidva.com>
To: Andres Freund <andres@anarazel.de>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-05-06T20:36:25Z
Lists: pgsql-hackers

Attachments

&gt;&nbsp;Sounds like a plan! Do you want to write a patch?
Add the patch.

Commits

  1. Improve and cleanup ProcArrayAdd(), ProcArrayRemove().

  2. snapshot scalability: Introduce dense array of in-progress xids.