Re: PgStat_HashKey padding issue when passed by reference - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: PgStat_HashKey padding issue when passed by reference
Date
Msg-id CAA5RZ0v8AfZxTKnhyEB_tvfXBhtn1Dcvo=t=eOMfGKYNOZb3kQ@mail.gmail.com
Whole thread Raw
In response to Re: PgStat_HashKey padding issue when passed by reference  (Michael Paquier <michael@paquier.xyz>)
List 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

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: PgStat_HashKey padding issue when passed by reference
Next
From: Sutou Kouhei
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations