generate syscache info automatically

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема generate syscache info automatically
Дата
Msg-id 75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org
обсуждение исходный текст
Ответы Re: generate syscache info automatically  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
Re: generate syscache info automatically  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
I want to report on my on-the-plane-to-PGCon project.

The idea was mentioned in [0].  genbki.pl 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 genbki.pl 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 genbki.pl aware of the syscache information.  There 
is some more work to be done there, but it's looking promising.


[0]: 
https://www.postgresql.org/message-id/flat/CA%2BhUKGKdpDjKL2jgC-GpoL4DGZU1YPqnOFHbDqFkfRQcPaR5DQ%40mail.gmail.com
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Tristan Partin"
Дата:
Сообщение: Re: Documentation for building with meson
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PG 16 draft release notes ready