Re: Inputting relative datetimes

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Inputting relative datetimes
Date: 2011-08-25 22:20:56
Message-ID: 4E56CAC8.3090400@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2011-08-25 22:24:19 Re: cheaper snapshots redux
Previous Message Josh Berkus 2011-08-25 22:18:15 Re: PATCH: regular logging of checkpoint progress