Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
Дата
Msg-id bf166909-8a8d-2d5f-ed5e-4a4d5121bde7@enterprisedb.com
обсуждение исходный текст
Ответы Re: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
Список pgsql-hackers
Hi,

I noticed that these two function, introduced in d746021de18b, disagree
on what types they support. For construct_array_builtin, we support
these types:

 - CHAROID:
 - CSTRINGOID:
 - FLOAT4OID:
 - INT2OID:
 - INT4OID:
 - INT8OID:
 - NAMEOID:
 - OIDOID:
 - REGTYPEOID:
 - TEXTOID:
 - TIDOID:

while deconstruct_array_builtin supports just a subset:

 - CHAROID:
 - CSTRINGOID:
 - FLOAT8OID:
 - INT2OID:
 - OIDOID:
 - TEXTOID:
 - TIDOID:

I ran into this for INT4OID. Sure, I can just lookup the stuff and use
the regualr deconstruct_array, but the asymmetry seems a bit strange. Is
that intentional?

regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: "Joel Jacobson"
Дата:
Сообщение: Re: Do we want a hashset type?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Order changes in PG16 since ICU introduction