From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bertrand Petit <pgsql-sql@phoe.frmug.org>
Cc: PostgreSQL-sql <pgsql-sql@postgresql.org>
Subject: Re: Comparing arrays
Date: Sat, 09 Aug 2003 10:34:07 -0400
Message-ID: <5328.1060439647@sss.pgh.pa.us> (raw)
In-Reply-To: <20030809121212.A71948@memo.frmug.org>
References: <20030809121212.A71948@memo.frmug.org>
Bertrand Petit <pgsql-sql@phoe.frmug.org> writes:
> That query can't be planed because of the following error: "Unable to
> identify an ordering operator '<' for type 'character varying[]'".
This shortcoming is (at long last) repaired for 7.4. There is no simple
solution in earlier releases, I fear.
> I'm signaled that the array_out procedure is not defined: "ERROR:
> TypeCreate: function array_out(attributes) does not exist". That error
> sounds strange as the CREATE TYPE manual describes uniform array type
> creation as illustrated above and that array_out() seems to exist as
> shown bellow.
CREATE TYPE wants an *exact* match of the argument/result datatypes.
You could fake it out by creating another pg_proc row pointing at the
same internal procedure. However, I think creating a private datatype
is the hard way to go about this. A better short-run solution is just
to create = and < operators for varchar[].
regards, tom lane
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: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-sql@phoe.frmug.org
Subject: Re: Comparing arrays
In-Reply-To: <5328.1060439647@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox