pgsql: Lift limitation that PGPROC->links must be the first field

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Lift limitation that PGPROC->links must be the first field
Date: 2024-07-05 08:33:33
Message-ID: E1sPeNn-000OIK-RK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Lift limitation that PGPROC->links must be the first field

Since commit 5764f611e1, we've been using the ilist.h functions for
handling the linked list. There's no need for 'links' to be the first
element of the struct anymore, except for one call in InitProcess
where we used a straight cast from the 'dlist_node *' to PGPROC *,
without the dlist_container() macro. That was just an oversight in
commit 5764f611e1, fix it.

There no imminent need to move 'links' from being the first field, but
let's be tidy.

Reviewed-by: Aleksander Alekseev, Andres Freund
Discussion: https://www.postgresql.org/message-id/22aa749e-cc1a-424a-b455-21325473a794@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/98347b5a3ab116dd0892d112531e376cff5066fd

Modified Files
--------------
src/backend/storage/lmgr/proc.c | 2 +-
src/include/storage/proc.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Joel Jacobson 2024-07-05 08:40:39 Re: pgsql: Add pg_get_acl() to get the ACL for a database object
Previous Message David Rowley 2024-07-05 05:51:55 pgsql: Improve memory management and performance of tuplestore.c