From: Andrew Perrin - Demography <aperrin@demog.berkeley.edu>
To: pgsql-sql@postgresql.org
Subject: Using overlaps()
Date: Mon, 10 Apr 2000 16:45:22 -0700 (PDT)
Message-ID: <Pine.LNX.4.10.10004101643440.10219-100000@famine.DEMOG.Berkeley.EDU> (raw)
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
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: aperrin@demog.berkeley.edu
Subject: Re: Using overlaps()
In-Reply-To: <Pine.LNX.4.10.10004101643440.10219-100000@famine.DEMOG.Berkeley.EDU>
References: <Pine.LNX.4.10.10004101643440.10219-100000@famine.DEMOG.Berkeley.EDU>
* 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