Re: Inputting relative datetimes - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Inputting relative datetimes
Date
Msg-id 4E56CAC8.3090400@agliodbs.com
Whole thread Raw
In response to Re: Inputting relative datetimes  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
> 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


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: PATCH: regular logging of checkpoint progress
Next
From: Jim Nasby
Date:
Subject: Re: cheaper snapshots redux