Re: Symbolic names for the values of typalign and typstorage
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2020-03-03T21:45:51Z
Lists: pgsql-hackers
Attachments
- macros-for-alignment-and-storage-constants-2.patch (text/x-diff) patch
I wrote: > Alvaro Herrera <alvherre@2ndquadrant.com> writes: >> On 2020-Mar-03, Tom Lane wrote: >>> I realized that a possible compromise position is to have tupmacs.h >>> include pg_type_d.h, not the whole pg_type.h header, thus dodging the >>> indirect inclusions. That still brings in the type-OID macros, but >>> it's a lot less header scope creep than I was first fearing. >> WFM. > OK, I'll look harder at doing it that way. Yeah, that works out very nicely: there's now only one place besides tupmacs.h that needs a new #include. I did a little more polishing, and consider the attached committable, unless anyone has objections. regards, tom lane
Commits
-
Introduce macros for typalign and typstorage constants.
- 3ed2005ff595 13.0 landed