> Yes, but what I am trying to achieve is a way of entering such
> relative timestamps using a single input value, so that absolute and
> relative timestamps can both be bound to a SQL query using just one
> variable.
I think adding a function would be the way to go then. Maybe extending
to_timestamp with a "relative" keyword.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com