Re: Improve readability by using designated initializers when possible

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: Improve readability by using designated initializers when possible
Дата
Msg-id CAGECzQRYeEFvGQaPnv7mO36RY7W_Zw7oXCO-Ey=7SvfxRot1dQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Improve readability by using designated initializers when possible  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Improve readability by using designated initializers when possible  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Thu, 29 Feb 2024 at 01:57, Michael Paquier <michael@paquier.xyz> wrote:
> I have doubts about the changes in raw_pg_bind_textdomain_codeset(),
> as the encoding could come from the value in the pg_database tuples
> themselves.  The current coding is slightly safer from the perspective
> of bogus input values as we would loop over pg_enc2gettext_tbl looking
> for a match.  0003 changes that so as we could point to incorrect
> memory areas rather than fail safely for the NULL check.

That's fair. Attached is a patch that adds a PG_VALID_ENCODING check
to raw_pg_bind_textdomain_codeset to solve this regression.

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: Synchronizing slots from primary to standby
Следующее
От: jian he
Дата:
Сообщение: Re: bug report: some issues about pg_15_stable(8fa4a1ac61189efffb8b851ee77e1bc87360c445)