| From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
|---|---|
| To: | David Geier <geidav(dot)pg(at)gmail(dot)com> |
| Cc: | Haibo Yan <tristan(dot)yim(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Reducing relcache memory usage 2: shrink sizeof(RelationData) |
| Date: | 2026-10-16 15:43:11 |
| Message-ID: | atJEhCJTFOqrj1X4@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
> From: David Geier <geidav(dot)pg(at)gmail(dot)com>
> Date: Wed, 2 Sep 2026 14:06:21 +0200
> Subject: [PATCH v4 3/7] Move RelationData to an internal header
>
> Move the definition of RelationData into utils/rel_internal.h. Otherwise,
> gen_node_support.pl cannot process rel.h after the anonymous unions are
> introduced by the following commit, because the script does not support
> parsing anonymous unions.
I really dislike this. Why not do it the other way around, and put the
one struct that gen_node_support.pl wants in a separate file instead?
As in the attached WIP. New file name TBD, of course.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte"
(Ijon Tichy en Viajes, Stanislaw Lem)
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Move-ForeignKeyCacheInfo-to-a-new-file.patch.txt | text/plain | 6.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Fujii Masao | 2026-10-16 15:30:39 | Re: REPACK: warn about skipping foreign partitions |