Re: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
Date
Msg-id 3020223d-6cdc-8e15-56e6-bc8cfc6c2d81@enterprisedb.com
Whole thread Raw
In response to Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Responses Re: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
List pgsql-hackers
On 12.06.23 22:38, Tomas Vondra wrote:
> I noticed that these two function, introduced in d746021de18b, disagree
> on what types they support.

> 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?

They only support the types that they were actually being used with.  If 
you need another type, feel free to add it.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Order changes in PG16 since ICU introduction
Next
From: Heikki Linnakangas
Date:
Subject: Re: Let's make PostgreSQL multi-threaded