postgresql: Set correct value to 'interval' query parameter (bugfix)