pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Gibson (DB Administrator) <postgresql3@ultimeth.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Difference in DATEs
Date: Tue, 21 Sep 2004 10:01:22 -0400
Message-ID: <386.1095775282@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.0.14.2.20040921003212.00a958d8@postgresql3.ultimeth.com>
References: <5.1.0.14.2.20040921003212.00a958d8@postgresql3.ultimeth.com>

"Dean Gibson (DB Administrator)" <postgresql3@ultimeth.com> writes:
> 3. x - y < INTERVAL '...' doesn't work (but then, the minus operator is not 
> defined in the manual for two DATE values).

Sure it is: see 10th row in
http://www.postgresql.org/docs/7.4/static/functions-datetime.html#OPERATORS-DATETIME-TABLE

Forget the interval and compare to an integer.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <386.1095775282@sss.pgh.pa.us>
Permalink:  ../386.1095775282@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/386.1095775282@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgresql3@ultimeth.com
  Subject: Re: Difference in DATEs
  In-Reply-To: <386.1095775282@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox