Skip site navigation (1) Skip section navigation (2)

Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Alan Pinstein <apinstein(at)mac(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty
Date: 2010-02-24 16:38:02
Message-ID: 8730.1267029482@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Was this ever addressed?

No, it doesn't look like the code's been changed.  I was looking for
some comments about which to do:

>> I can see two reasonable ways to address this:
>> 
>> * Change the ltree test to reject only ARR_NDIM > 1.
>> 
>> * Drop the ARR_NDIM check altogether, and let it search any sort of
>> array.
>> 
>> I'm leaning to #2 myself.  However, there are probably other places with
>> the same kind of issue, and in some of them it might make more sense to
>> reject multidimensional arrays.

Thoughts?

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2010-02-24 16:41:58
Subject: Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty
Previous:From: Magnus HaganderDate: 2010-02-24 16:18:07
Subject: Re: Could not receive data from client: Unknown winsock error 10061

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group