Re: functions/operators with 2 sets as arguments

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: functions/operators with 2 sets as arguments
Date: 2003-12-06 23:51:12
Message-ID: 16540.1070754672@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl> writes:
> While trying to create an operator to test if 2 intervals
> overlap, I ran into the following limitation:

> ERROR: Functions and operators can take only one set argument
> (PostgreSQL 7.3.2 on OpenBSD)

> Does anybody know any workarounds (or if this limitation has been
> removed from 7.4)?

It's still there, and is unlikely to go away (I think future development
is more likely to go in the direction of deprecating/removing set-valued
functions in SELECT expressions than extending the facility).

Why would interval overlap testing require such a function? What are
you trying to do, exactly?

Also, have you looked at the SQL OVERLAPS operator? Your problem might
be solved already, if what you are after corresponds to what the SQL
authors thought would be useful ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hunter Hillegas 2003-12-07 00:11:49 Re: 7.4 Crashed... Why?
Previous Message Bruce Momjian 2003-12-06 23:45:12 Re: update time zone in timestamps