postgresql/src/backend/access
Tom Lane f5024d8d7b Re-order pg_attribute columns to eliminate some padding space.
Now that attcompression is just a char, there's a lot of wasted
padding space after it.  Move it into the group of char-wide
columns to save a net of 4 bytes per pg_attribute entry.  While
we're at it, swap the order of attstorage and attalign to make for
a more logical grouping of these columns.

Also re-order actions in related code to match the new field ordering.

This patch also fixes one outright bug: equalTupleDescs() failed to
compare attcompression.  That could, for example, cause relcache
reload to fail to adopt a new value following a change.

Michael Paquier and Tom Lane, per a gripe from Andres Freund.

Discussion: https://postgr.es/m/20210517204803.iyk5wwvwgtjcmc5w@alap3.anarazel.de
2021-05-23 12:12:09 -04:00
..
brin Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
common Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
gin Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
gist Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
hash Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
heap Fix autovacuum log output heap truncation issue. 2021-05-13 16:07:17 -07:00
index Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
nbtree Harden nbtree deduplication posting split code. 2021-05-14 15:08:02 -07:00
rmgrdesc Improve WAL record descriptions for SP-GiST records. 2021-04-20 17:01:49 -04:00
spgist Re-order pg_attribute columns to eliminate some padding space. 2021-05-23 12:12:09 -04:00
table Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Make standby promotion reset the recovery pause state to 'not paused'. 2021-05-19 13:48:19 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00