Re: Add a missing comment for PGPROC.pgprocno

2022-10-11 Thread Bruce Momjian
On Thu, Sep 8, 2022 at 08:16:07PM +0300, Aleksander Alekseev wrote: > Hi hackers, > > I tried to understand some implementation details of ProcArray and > discovered that this is a bit challenging to do due to a missing > comment for PGPROC.pgprocno. E.g. it's hard to understand why > ProcArrayAd

Add a missing comment for PGPROC.pgprocno

2022-09-08 Thread Aleksander Alekseev
Hi hackers, I tried to understand some implementation details of ProcArray and discovered that this is a bit challenging to do due to a missing comment for PGPROC.pgprocno. E.g. it's hard to understand why ProcArrayAdd() preserves procArray->pgprocnos[] sorted by (PGPROC *) if actually the sorting