postgresql/src/backend/access/common
Tom Lane 3ed2005ff5 Introduce macros for typalign and typstorage constants.
Our usual practice for "poor man's enum" catalog columns is to define
macros for the possible values and use those, not literal constants,
in C code.  But for some reason lost in the mists of time, this was
never done for typalign/attalign or typstorage/attstorage.  It's never
too late to make it better though, so let's do that.

The reason I got interested in this right now is the need to duplicate
some uses of the TYPSTORAGE constants in an upcoming ALTER TYPE patch.
But in general, this sort of change aids greppability and readability,
so it's a good idea even without any specific motivation.

I may have missed a few places that could be converted, and it's even
more likely that pending patches will re-introduce some hard-coded
references.  But that's not fatal --- there's no expectation that
we'd actually change any of these values.  We can clean up stragglers
over time.

Discussion: https://postgr.es/m/16457.1583189537@sss.pgh.pa.us
2020-03-04 10:34:25 -05:00
..
attmap.c Force tuple conversion when the source has missing attributes. 2020-02-05 20:21:20 +00:00
bufmask.c
detoast.c tableam: New callback relation_fetch_toast_slice. 2020-01-07 14:36:38 -05:00
heaptuple.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
indextuple.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
Makefile
printsimple.c Optimizations for integer to decimal output. 2020-02-01 21:57:14 +00:00
printtup.c
relation.c
reloptions.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
scankey.c
session.c
toast_internals.c
tupconvert.c
tupdesc.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00