Re: [SQL] Comparing arrays

2003-08-14 Thread Tom Lane
Bertrand Petit <[EMAIL PROTECTED]> 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. >

Re: [SQL] Comparing arrays

2003-08-14 Thread Joe Conway
Bertrand Petit wrote: In two table I store "objects" and their attributes. The attributes, which are not meant to be searched, are stored as unbound arrays of varchars. I have a query that needs to use those attributes on both sides of an EXCEPT statement: SELECT left.id, left.attribs FR

Re: [SQL] Comparing arrays

2003-08-11 Thread Bertrand Petit
On Sat, Aug 09, 2003 at 09:01:13AM -0700, Joe Conway wrote: > > This should work on 7.4 beta. And now it works too in 7.3. I've implemented the <, <=, =, <>, =>, and > operators in PL/pgSQL for the VARCHAR[] type and assembled them into an operator class. This is just a bit slow but that's

[SQL] Comparing arrays

2003-08-09 Thread Bertrand Petit
Hello, I advance in my postgres exploration and found something that looks quite strange, or at least unexpected regarding the present 7.3.3 documentation. In two table I store "objects" and their attributes. The attributes, which are not meant to be searched, are stored