Re: automatically generating node support functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: automatically generating node support functions
Дата
Msg-id d200d6b0-0fde-d02e-b547-d00211acf8df@enterprisedb.com
обсуждение исходный текст
Ответ на Re: automatically generating node support functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 06.07.22 02:54, Tom Lane wrote:
> It might be enough to invent a struct-level attribute allowing
> manual assignment of node tags, ie
> 
> typedef struct MyNewNode pg_node_attr(nodetag=466)
> 
> where it'd be the programmer's responsibility to pick a nonconflicting
> tag number.  We'd only ever use that in ABI-frozen branches, so
> manual assignment of the tag value should be workable.

Yes, I'm aware of this issue, and that was also more or less my idea.

(Well, before the introduction of per-struct attributes, I was thinking 
about parsing nodes.h to see if the tag is listed explicitly.  But this 
is probably better.)



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: automatically generating node support functions
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication