Re: behaviour of inequalities with row constructors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Studholme <cvs(at)cs(dot)utoronto(dot)ca>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: behaviour of inequalities with row constructors
Date: 2003-04-03 18:20:52
Message-ID: 11688.1049394052@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Chris Studholme <cvs(at)cs(dot)utoronto(dot)ca> writes:
> What follows is not necessarily a bug, but may be a misinterpretation of
> the SQL standard.

Yeah, it's a bug; the implementation of row comparisons in PG is
completely bogus. (The parser just expands it out to an AND clause
of scalar comparisons, which works for = but not for < or >.) This
is (or should be) on the TODO list, but no one has gotten around to
it yet.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Darren Ferguson 2003-04-03 18:27:56 Re: [GENERAL] Suggestion
Previous Message scott.marlowe 2003-04-03 18:08:28 Re: [GENERAL] Suggestion