Refactor construct_array() and deconstruct_array() for built-in types

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Refactor construct_array() and deconstruct_array() for built-in types
Дата
Msg-id 2914356f-9e5f-8c59-2995-5997fc48bcba@enterprisedb.com
обсуждение исходный текст
Ответы Re: Refactor construct_array() and deconstruct_array() for built-in types  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
[for PG16]

There are many calls to construct_array() and deconstruct_array() for 
built-in types, for example, when dealing with system catalog columns. 
These all hardcode the type attributes necessary to pass to these functions.

To simplify this a bit, add construct_array_builtin(), 
deconstruct_array_builtin() as wrappers that centralize this hardcoded 
knowledge.  This simplifies many call sites and reduces the amount of 
hardcoded stuff that is spread around.

I also considered having genbki.pl generate lookup tables for these 
hardcoded values, similar to schemapg.h, but that ultimately seemed 
excessive.

Thoughts?

Вложения

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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: postgres_fdw: commit remote (sub)transactions in parallel during pre-commit
Следующее
От: Pavel Stehule
Дата:
Сообщение: strange slow query - lost lot of time somewhere