Remove superfluous 'pgprocno' field from PGPROC

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 28f3915b73f75bd1b50ba070f56b34241fe53fd1
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-02-21T23:21:34Z
Releases: 17.0
Remove superfluous 'pgprocno' field from PGPROC

It was always just the index of the PGPROC entry from the beginning of
the proc array. Introduce a macro to compute it from the pointer
instead.

Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/8171f1aa-496f-46a6-afc3-c46fe7a9b407@iki.fi

Files

Discussion