Re: Adding the extension name to EData / log_line_prefix

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Adding the extension name to EData / log_line_prefix
Дата
Msg-id 20240513232753.fgu7sn7lebk7jwlg@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: Adding the extension name to EData / log_line_prefix  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On 2024-05-13 19:11:53 -0400, Tom Lane wrote:
> The mechanism that Andres describes for sourcing the name seems a bit
> overcomplex though.  Why not just allow/require each extension to
> specify its name as a constant string?  We could force the matter by
> redefining PG_MODULE_MAGIC as taking an argument:
>     PG_MODULE_MAGIC("hstore");

Mostly because it seemed somewhat sad to require every extension to have
version-specific ifdefs around that, particularly because it's not hard for us
to infer.

I think there might be other use cases for the backend to provide "extension
scoped" information, FWIW. Even just providing the full path to the extension
library could be useful.

Greetings,

Andres Freund



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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Why is parula failing?
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Adding the extension name to EData / log_line_prefix