Re: A micro-optimisation for ProcSendSignal()
Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
From: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, ashwinstar@gmail.com
Date: 2021-07-17T18:57:39Z
Lists: pgsql-hackers
Attachments
- v2-0001-Optimize-ProcSendSignal.patch (application/x-patch) patch v2-0001
Hi Thomas, You might have missed a spot to initialize SERIALIZABLE_XACT->pgprocno in InitPredicateLocks(), so: + PredXact->OldCommittedSxact->pgprocno = INVALID_PGPROCNO; Slightly tangential: we should add a comment to PGPROC.pgprocno, for more immediate understandability: + int pgprocno; /* index of this PGPROC in ProcGlobal->allProcs */ Also, why don't we take the opportunity to get rid of SERIALIZABLEXACT->pid? We took a stab. Attached is v2 of your patch with these changes. Regards, Ashwin and Deep
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Change ProcSendSignal() to take pgprocno.
- a13db0e16404 15.0 landed