Re: Adding the extension name to EData / log_line_prefix

Поиск
Список
Период
Сортировка
От Chapman Flack
Тема Re: Adding the extension name to EData / log_line_prefix
Дата
Msg-id 6644F7DE.9050704@acm.org
обсуждение исходный текст
Ответ на Re: Adding the extension name to EData / log_line_prefix  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 05/15/24 13:45, Tom Lane wrote:
> if we tell people to write
> 
>    PG_MODULE_MAGIC;
>    #undef TEXTDOMAIN
>    #define TEXTDOMAIN PG_TEXTDOMAIN("hstore")
> 
> then that's 100% backwards compatible and they don't need any
> version-testing ifdef's.

OT for this thread, but related: supposing out-of-core extensions
participate increasingly in NLS, would they really want to use
the PG_TEXTDOMAIN macro?

That munges the supplied domain name with PG's major version and
.so version numbers.

Were such versioning wanted for an out-of-core extension's message
catalogs, wouldn't the extension's own versioning be better suited?

Regards,
-Chap




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Adding the extension name to EData / log_line_prefix
Следующее
От: Robert Haas
Дата:
Сообщение: Re: psql JSON output format