Re: row-wise comparison question/issue - Mailing list pgsql-hackers

From Tom Lane
Subject Re: row-wise comparison question/issue
Date
Msg-id 19129.1161384978@sss.pgh.pa.us
Whole thread Raw
In response to Re: row-wise comparison question/issue  (Jeremy Drake <pgsql@jdrake.com>)
List pgsql-hackers
Jeremy Drake <pgsql@jdrake.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Beta, RC Time?
Next
From: dakotali kasap
Date:
Subject: Want to use my own query-plan