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: Alan Pinstein <apinstein(at)mac(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4921: ltree @> ltree[] operator shouldn't fail if ltree[] is empty
Date: 2009-07-15 15:33:02
Message-ID: 23246.1247671982@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alan Pinstein <apinstein(at)mac(dot)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

In response to

Responses

Browse pgsql-bugs by date

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