On Fri, 2 Jul 2004, Tom Lane wrote: > Ilir Gashi <[EMAIL PROTECTED]> writes: > > I saw this behaviour in PostgreSQL 7.2. (Once again, I know this is an old > > release but I do not have a newer version installed, and I am only using > > the server for research purposes). If you execute the following statement > > > SELECT (CAST('01.01.2004 10:01:00' AS TIMESTAMP) - CAST('01.01.2004 > > 10:00:00' AS TIMESTAMP)) + CAST('01.01.2004 10:00:00' AS TIMESTAMP); > > (There is a timestamp + interval operator, so you could make it work by > flipping around the outer addition.)
Should we be providing an interval + timestamp operator as well since it looks like the spec implies both orderings should work? ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match