generate syscache info automatically

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: generate syscache info automatically
Date: 2023-05-30 21:57:53
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I want to report on my on-the-plane-to-PGCon project.

The idea was mentioned in [0]. already knows everything about
system catalog indexes. If we add a "please also make a syscache for
this one" flag to the catalog metadata, we can have produce
the tables in syscache.c and syscache.h automatically.

Aside from avoiding the cumbersome editing of those tables, I think this
layout is also conceptually cleaner, as you can more easily see which
system catalog indexes have syscaches and maybe ask questions about why
or why not.

As a possible follow-up, I have also started work on generating the
ObjectProperty structure in objectaddress.c. One of the things you need
for that is making aware of the syscache information. There
is some more work to be done there, but it's looking promising.


Attachment Content-Type Size
0001-Update-DECLARE_INDEX-documentation.patch text/plain 1.6 KB
0002-Restructure-DECLARE_INDEX-arguments.patch text/plain 65.4 KB text/plain 3.8 KB
0004-Generate-syscache-info-from-catalog-files.patch text/plain 72.0 KB
0005-WIP-Generate-ObjectProperty-from-catalog-files.patch text/plain 6.7 KB


Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2023-05-30 23:07:37 Re: PG 16 draft release notes ready
Previous Message Tristan Partin 2023-05-30 18:13:52 Re: Documentation for building with meson