Re: NAMEDATALEN increase because of non-latin languages

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: NAMEDATALEN increase because of non-latin languages
Дата
Msg-id CA+TgmoY2WSF0uHRhYi4y1vx-o735-yAn1VrKwrd6VgfnaELHog@mail.gmail.com
обсуждение исходный текст
Ответ на Re: NAMEDATALEN increase because of non-latin languages  (Andres Freund <andres@anarazel.de>)
Ответы Re: NAMEDATALEN increase because of non-latin languages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Jun 23, 2022 at 5:49 PM Andres Freund <andres@anarazel.de> wrote:
> I was thinking we'd basically do it wherever we do a GETSTRUCT() today.
>
> A first step could be to transform code like
>     (Form_pg_attribute) GETSTRUCT(tuple)
> into
>    GETSTRUCT(pg_attribute, tuple)
>
> then, in a subsequent step, we'd redefine GETSTRUCT as something
> #define GESTRUCT(catalog, tuple) tuple_to_struct_##catalog(tuple)

That seems a little fraught, because you'd be turning what's now
basically a trivial operation into a non-trivial operation involving
memory allocation.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: NAMEDATALEN increase because of non-latin languages
Следующее
От: Tom Lane
Дата:
Сообщение: Re: NAMEDATALEN increase because of non-latin languages