From: bneumeier@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8684: Tables with custom range domain type cannot be analyzed
Date: Tue, 17 Dec 2013 17:10:01 +0000
Message-ID: <E1Vsy9h-0005SS-RN@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: 8684
Logged by: Brett Neumeier
Email address: bneumeier@gmail.com
PostgreSQL version: 9.3.2
Operating system: Ubuntu Linux 13.04 64-bit
Description:
In 9.3.2 and master HEAD (3b97e6823b), in a freshly-created postgresql
database (with all tests passing from "make check-world"), this sequence:
-----cut here-----
CREATE DOMAIN range_domain AS tstzrange
CONSTRAINT exclusive_upper CHECK ((NOT upper_inc(VALUE)))
CONSTRAINT inclusive_lower CHECK (lower_inc(VALUE));
CREATE TABLE cannot_analyze (
rng range_domain NOT NULL
);
VACUUM ANALYZE;
-----cut here-----
results in the analyze failing with "ERROR: type 16385 is not a range type"
rather than succeeding.
(This error is being emitted from range_get_typcache because the result of
lookup_type_cache(rngtypid, TYPECACHE_RANGE_INFO) has a rngelemtype of NULL,
but I haven't tried to figure out why that is or what it should be instead.)
--
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: bneumeier@gmail.com
Subject: Re: BUG #8684: Tables with custom range domain type cannot be analyzed
In-Reply-To: <E1Vsy9h-0005SS-RN@wrigleys.postgresql.org>
References: <E1Vsy9h-0005SS-RN@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