I have a query that works on Postgresql 7.4, but not on Postgresql 8.3 with the same database.
Query:
SELECT * FROM login_session WHERE (now()-modified) > timeout;
Gets the following error:
ERROR: operator does not exist: interval > integer LINE 1: ...ELECT * FROM login_session WHERE (now()-modified) > timeout ... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
The modified column is timestamp and timeout is integer .
Are there any settings that I need to change on the server?
I am installing the client application on a new server (ubuntu), so I cannot change requests in the application.
source share