postgresql/contrib/pageinspect
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
..
expected Teach pageinspect about nbtree deduplication. 2020-02-29 12:10:17 -08:00
sql Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09:00
.gitignore pageinspect: Add tests 2016-11-01 14:02:16 -04:00
brinfuncs.c Remove excess parens in ereport() calls 2020-01-30 13:32:04 -03:00
btreefuncs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
fsmfuncs.c Remove excess parens in ereport() calls 2020-01-30 13:32:04 -03:00
ginfuncs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
hashfuncs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
heapfuncs.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
Makefile Remove support for upgrading extensions from "unpackaged" state. 2020-02-19 16:59:14 -05:00
pageinspect--1.0--1.1.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
pageinspect--1.1--1.2.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
pageinspect--1.2--1.3.sql pageinspect/BRIN: minor tweaks 2014-12-02 12:20:50 -03:00
pageinspect--1.3--1.4.sql Add forgotten file in commit d6061f83a1 2015-11-25 16:59:07 +03:00
pageinspect--1.4--1.5.sql Update pageinspect extension for parallel query. 2016-06-09 17:18:09 -04:00
pageinspect--1.5--1.6.sql pageinspect: Add bt_page_items function with bytea argument 2017-04-04 23:52:55 -04:00
pageinspect--1.5.sql Update pageinspect extension for parallel query. 2016-06-09 17:18:09 -04:00
pageinspect--1.6--1.7.sql Skip full index scan during cleanup of B-tree indexes when possible 2018-04-04 19:29:00 +03:00
pageinspect--1.7--1.8.sql Teach pageinspect about nbtree deduplication. 2020-02-29 12:10:17 -08:00
pageinspect.control Add to pageinspect function to make t_infomask/t_infomask2 human-readable 2019-09-12 15:06:00 +09:00
pageinspect.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
rawpage.c Remove excess parens in ereport() calls 2020-01-30 13:32:04 -03:00