From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Andrew Perrin - Demography <aperrin@demog.berkeley.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using overlaps()
Date: Mon, 10 Apr 2000 20:44:01 -0400 (EDT)
Message-ID: <200004110044.UAA16523@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.10.10004101643440.10219-100000@famine.DEMOG.Berkeley.EDU>
Perhaps only 7.0beta. Sorry
> Greetings.
>
> The Postgres Book implies that there is a function overlaps() that takes
> two pairs of dates and returns true if they overlap. However, I get an
> error trying to use it:
>
> demogdata=> select event_id from event_detail where overlaps
> (date_effective, date_expires, '1-mar-2000'::datetime , now()::datetime);
> ERROR: No such function 'overlaps' with the specified attributes
> demogdata=> select event_id from event_detail where (date_effective,
> date_expires) overlaps ('1-mar-2000'::date , now()::date);
> ERROR: parser: parse error at or near "overlaps"
>
> Any advice?
>
> Thanks.
>
> ---------------------------------------------------------------------
> Andrew J. Perrin - aperrin@demog.berkeley.edu - NT/Unix Admin/Support
> Department of Demography - University of California at Berkeley
> 2232 Piedmont Avenue #2120 - Berkeley, California, 94720-2120 USA
> http://demog.berkeley.edu/~aperrin --------------------------SEIU1199
>
>
--
Bruce Momjian | http://www.op.net/~candle
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, aperrin@demog.berkeley.edu
Subject: Re: Using overlaps()
In-Reply-To: <200004110044.UAA16523@candle.pha.pa.us>
References: <Pine.LNX.4.10.10004101643440.10219-100000@famine.DEMOG.Berkeley.EDU> <200004110044.UAA16523@candle.pha.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