Reducing relcache memory usage 2: shrink sizeof(RelationData)

Edit
ID 7483
Title Reducing relcache memory usage 2: shrink sizeof(RelationData)
CI (CFBot) Summary
Stats (from CFBot) Patch version: v5, Patch count: 7, First patch: +3−7, All patches: +738−603
Tags Performance
Created 2026-10-19 13:29:10
Last modified 2026-10-19 13:29:10 (2 hours ago)
Latest email 2026-10-19 13:31:32 (2 hours ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
Target version 20
Authors David Geier (geidav)
Reviewers Become reviewer
Committer
Links
Emails
Reducing relcache memory usage 2: shrink sizeof(RelationData)
First at 2026-09-10 09:43:04 by David Geier <geidav.pg at gmail.com>
Latest at 2026-10-19 13:31:32 by David Geier <geidav.pg at gmail.com>
Latest attachment (v5-0001-Assert-CacheMemoryContext-exists-in-relcache-call.patch) at 2026-10-19 13:31:32 from David Geier <geidav.pg at gmail.com>
    Attachment (v5-0001-Assert-CacheMemoryContext-exists-in-relcache-call.patch) at 2026-10-19 13:31:32 from David Geier <geidav.pg at gmail.com> (Patch: No)
    Attachment (v1-0001-gen_node_support.pl-skips-anonymous-structs-union.patch) at 2026-10-18 11:42:44 from David Geier <geidav.pg at gmail.com> (Patch: No)
    Attachment (0001-Move-ForeignKeyCacheInfo-to-a-new-file.patch.txt) at 2026-10-16 15:43:11 from Álvaro Herrera <alvherre at kurilemu.de> (Patch: No)
    Attachment (v4-0001-Assert-CacheMemoryContext-exists-in-relcache-call.patch) at 2026-10-16 13:02:46 from David Geier <geidav.pg at gmail.com> (Patch: No)
    Attachment (0004-reset-index-pointers-after-initfile-load.patch) at 2026-10-14 16:24:30 from Haibo Yan <tristan.yim at gmail.com> (Patch: Yes)
    Attachment (v3-0008-Remove-rd_index.patch) at 2026-10-05 11:48:10 from David Geier <geidav.pg at gmail.com> (Patch: No)
    Attachment (v2-0001-Remove-unnecessary-CacheMemoryContext-existence-c.patch) at 2026-09-18 15:06:27 from David Geier <geidav.pg at gmail.com> (Patch: No)
    Attachment (v1-0001-relcache-Use-Slab-context-for-RelationData-allocs.nocfbot.patch) at 2026-09-14 12:36:20 from Matthias van de Meent <boekewurm+postgres at gmail.com> (Patch: No)
    Attachment (v1-0001-Move-RelationData-to-new-include.patch) at 2026-09-10 09:43:04 from David Geier <geidav.pg at gmail.com> (Patch: No)
History
When Who What
2026-10-19 13:29:10 David Geier (geidav) Attached mail thread f97de758-b816-47db-96e0-0e6e2c2d3eef@gmail.com
2026-10-19 13:29:10 David Geier (geidav) Created patch record
Edit