Re: QSoC proposal: date_trunc supporting intervals

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: Alexandr <askellio(at)gmail(dot)com>
Cc: PostgreSQL-Dev <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: QSoC proposal: date_trunc supporting intervals
Date: 2014-03-20 21:20:51
Message-ID: CAGTBQpaP6JCSoMw06oMExagksCpuSmqBfy3jQDWJFgP88XB6dg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 20, 2014 at 5:55 PM, Alexandr <askellio(at)gmail(dot)com> wrote:
>> Subtracting to get an interval, then converting that interval to seconds
>> or minutes could give you a value that's wildly different from the right
>> answer.
>
> Can you explain me when it happens ?

'1 month'::interval

It's different depending on which month we're talking about.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Behn, Edward (EBEHN) 2014-03-20 21:54:17 Array of composite types returned from python
Previous Message Alexandr 2014-03-20 20:55:07 Re: QSoC proposal: date_trunc supporting intervals