From: Paragon Corporation <lr@pcorp.us>
To: pgsql-bugs@postgresql.org
Subject: PostgreSQL 9.1beta 1 Some domains not being able to be auto cast to their base type
Date: Tue, 24 May 2011 07:05:22 -0400
Message-ID: <FE9FFC6BE9F84968846C66FF4A22AE1E@J> (raw)
In regression testing PostGIS 2.0, our topology module regression tests are
failing in PostgreSQL 9.1 beta.
We have a PostGIS ticket open for it here, but we suspect it's a PostgreSQL
9.1 bug and would like to close it out.
http://trac.osgeo.org/postgis/ticket/980
Our domain type is defined as:
CREATE DOMAIN topoelementarray
AS integer[][]
CONSTRAINT dimensions CHECK ((((array_upper(VALUE, 2) IS NOT NULL) AND
(array_upper(VALUE, 2) = 2)) AND (array_upper(VALUE, 3) IS NULL)));
If I try this in PostgreSQL 9.1 beta1:
SELECT array_upper(ARRAY[ARRAY[1,2], ARRAY[3,4]]::topoelementarray,1);
I get error:
function array_upper(topoelementarray, integer) does not exist
In my PostgreSQL 9.0 and 8.4 the above operation works fine.
Thanks,
Regina
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: lr@pcorp.us
Subject: Re: PostgreSQL 9.1beta 1 Some domains not being able to be auto cast to their base type
In-Reply-To: <FE9FFC6BE9F84968846C66FF4A22AE1E@J>
References: <FE9FFC6BE9F84968846C66FF4A22AE1E@J>
* 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