From: balazs@obiserver.hu
To: pgsql-bugs@postgresql.org
Cc: balazs@obiserver.hu
Subject: BUG #14854: daterange[] is an anyarray or anyrange?
Date: Fri, 13 Oct 2017 19:45:21 +0000
Message-ID: <20171013194521.8203.22579@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14854
Logged by: Balazs Szilfai
Email address: balazs@obiserver.hu
PostgreSQL version: 9.6.5
Operating system: Debian Linux
Description:
I can't create function with param to accept a pseudo-type to daterange and
daterange[] (array of daterange).
I tried:
CREATE FUNCTION range_overlap_array_any(anyrange, anyarray) RETURNS boolean
AS $$SELECT false;$$ LANGUAGE sql IMMUTABLE STRICT;
CREATE FUNCTION range_overlap_array_any(anyrange, anyrange) RETURNS boolean
AS $$SELECT false;$$ LANGUAGE sql IMMUTABLE STRICT;
My queries and the error messages:
SELECT range_overlap_array_any(daterange('2017-01-01', '2017-04-01'),
array[daterange('2016-12-10', '2016-12-11')]);
ERROR: function range_overlap_array_any(daterange, daterange[]) does not
exist
SELECT range_overlap_array_any(daterange('2017-01-01', '2017-04-01'),
array['x'::text]);
ERROR: function range_overlap_array_any(daterange, text[]) does not exist
What's the mistake? Or did I break something?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: balazs@obiserver.hu
Subject: Re: BUG #14854: daterange[] is an anyarray or anyrange?
In-Reply-To: <20171013194521.8203.22579@wrigleys.postgresql.org>
References: <20171013194521.8203.22579@wrigleys.postgresql.org>
* 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