Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtKNP-00079p-8r for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 16:53:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VtKNO-00016E-OY for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 16:53:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vsy9t-0006rT-Ui for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 17:10:14 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vsy9n-0006C6-QB for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 17:10:13 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vsy9n-0002FQ-An for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 17:10:07 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Vsy9h-0005SS-RN for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 17:10:01 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8684: Tables with custom range domain type cannot be analyzed To: pgsql-bugs@postgresql.org From: bneumeier@gmail.com Message-Id: Date: Tue, 17 Dec 2013 17:10:01 +0000 X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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