Luke McFarlane <luke (AT) fisheye (DOT) com.au> writes:
Quote:
It's interesting why addition assumes one operand is interval while
subtraction assumes it is timestamp? It should at least be consistent, IMHO. |
There is no timestamp + timestamp operator, for reasons that should be
fairly apparent. There are both timestamp - timestamp (yielding interval)
and timestamp - interval (yielding timestamp), and in case of ambiguity
the preferred interpretation is the one with the same datatype on both
sides. See
http://www.postgresql.org/docs/7.4/s...conv-oper.html
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html