Re: patch for between symmetric, asymmetric (from TODO)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>, pgsql-patches(at)postgresql(dot)org
Subject: Re: patch for between symmetric, asymmetric (from TODO)
Date: 2005-06-01 15:34:20
Message-ID: 14357.1117640060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Pavel Stehule wrote:
>> I did task from TODO: Add BETWEEN ASYMMETRIC/SYMMETRIC.

> The implementation in this patch has the same problems as all the
> previously rejected attempts: it evaluates its arguments twice. You
> need to make BETWEEN SYMMETRIC into a separate node type that evaluates
> each argument only once.

Sure, but BETWEEN already does that; Pavel's not making that situation
any worse. The trouble with making it a separate node type is that that
raises the stakes a great deal concerning the amount of planner support
needed (assuming you still want indexability...)

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Pavel Stehule 2005-06-01 15:53:29 Re: patch for between symmetric, asymmetric (from TODO)
Previous Message Tom Lane 2005-06-01 15:14:48 Re: patch for between symmetric, asymmetric (from TODO)