Re: Add Postgres module info

Поиск
Список
Период
Сортировка
От Yurii Rashkovskii
Тема Re: Add Postgres module info
Дата
Msg-id CAG=VW14rW63X=rqUS1yxLqZJeb_R+oRGdL5ZuF1mRDOMaSmzvg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add Postgres module info  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add Postgres module info
Список pgsql-hackers

On Wed, Mar 26, 2025 at 8:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Yurii Rashkovskii <yrashk@omnigres.com> writes:
>> Can you propose a specific change to clean it up?  I wanted to write
>> just "PG_MODULE_MAGIC_DATA()", but I'm not sure that's valid C either.

> I was thinking about passing `.name = NULL, .version = NULL` instead of
> `0`—do you have any reservations about this?

If we're going that way, I'd minimize it to just ".name = NULL".

Would something like this work? 
Вложения

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