On Fri, Mar 12, 2021 at 12:31 AM Thomas Munro <thomas.munro@gmail.com> wrote:
> ProcSendSignal(pid) searches the ProcArray for the given pid and then
> sets that backend's procLatch. It has only two users: UnpinBuffer()
> and ReleasePredicateLocks(). In both cases, we could just as easily
> have recorded the pgprocno instead, avoiding the locking and the
> searching. We'd also be able to drop some special book-keeping for
> the startup process, whose pid can't be found via the ProcArray.
Rebased.