Re: extract day from interval

From: Seb <spluque(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: extract day from interval
Date: 2008-03-28 04:36:20
Message-ID: 877ifnpirf.fsf@patagonia.sebmags.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 28 Mar 2008 00:06:59 -0400,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

[...]

> Efficiency is moot, it's just plain wrong. Or at least something is
> wrong here, Subtraction of two "date" values gives an integer number
> of days already, so I'd expect the EXTRACT to fail altogether. You
> sure the date columns are type date and not type timestamp?

My mistake, yes, sure they're both timestamp!

--
Seb

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2008-03-28 05:20:03 Reminder: Google Summer of Code deadline 72 hours away!
Previous Message Tom Lane 2008-03-28 04:06:59 Re: extract day from interval