Re: row-wise comparison question/issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Drake <pgsql(at)jdrake(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: row-wise comparison question/issue
Date: 2006-10-20 22:56:18
Message-ID: 19129.1161384978@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeremy Drake <pgsql(at)jdrake(dot)com> writes:
> I just think it is quite unexpected that the operator < is defined in some
> places and not in others.

Row-wise comparison isn't an operator, it's a syntactic construct.
Consider

(now(), 'foo', 42) < (SELECT timestampcol, textcol, intcol FROM sometable WHERE ...)

There isn't any single operator in the system that implements that.

(And no, orthogonality is not one of the strong points of SQL...)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message dakotali kasap 2006-10-20 23:05:52 Want to use my own query-plan
Previous Message Tom Lane 2006-10-20 22:50:55 Re: Beta, RC Time?