public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tomas Vondra <[email protected]>
To: PostgreSQL Hackers <[email protected]>
To: Peter Eisentraut <[email protected]>
Subject: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
Date: Mon, 12 Jun 2023 22:38:59 +0200
Message-ID: <[email protected]> (raw)
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
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Shouldn't construct_array_builtin and deconstruct_array_builtin agree on types?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox