Re: PgStat_HashKey padding issue when passed by reference
Sami Imseih <samimseih@gmail.com>
From: Sami Imseih <samimseih@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-09-09T02:36:52Z
Lists: pgsql-hackers
> > Exactly. Hence my proposal of static assertion is doing exactly the > job I want it to do :) But my concern is the flexibility of this approach. If someone is to add an OID field next, they will not be able to as that will be introducing padding. On the other hand, passing the key by reference and documenting the reason in pgstat_shmem.c will not lose this flexibility. -- Sami >
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Document and check that PgStat_HashKey has no padding
- 3cd3a039da7f 19 (unreleased) landed