Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty
Date
Msg-id 23246.1247671982@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty  ("Alan Pinstein" <apinstein@mac.com>)
Responses Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty  (Alan Pinstein <apinstein@mac.com>)
List pgsql-bugs
Alan Pinstein <apinstein@mac.com> writes:
> The real solution might be to just convert a 0-dim array into "null"
> or equivalent and still assert error if dims >= 2?

That's my alternative #1.  The question is whether there's any real
point in rejecting multi-dimensional arrays here, rather than just
searching all the elements regardless of the array shape.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Marko Kreen
Date:
Subject: Re: [PERFORM] BUG #4919: CREATE USER command slows down system performance
Next
From: Alan Pinstein
Date:
Subject: Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty