I have a query that works on Postgresql 7.4 but not on Postgresql 8.3 with 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.
Column modified is a timestamp and timeout is an integer.
Is there some settings I need to change on server?
I’m installing an application for a client on new server (ubuntu) so I can’t change queries in the application.
ought to do it.