One more query: Cant I do something like this:
$2 := $2 + interval ''86399 seconds'';
Where $2 is one of my input variables to the function.
It gives me an error:
ERROR: $2 is declared CONSTANT
---------------------------(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
