From: quassnoi@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8333: Conversions from TEXT to range types are not immutable
Date: Thu, 25 Jul 2013 11:53:20 +0000
Message-ID: <E1V2K6i-0008QX-54@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: 8333
Logged by: Alex Bolenok
Email address: quassnoi@gmail.com
PostgreSQL version: 9.2.4
Operating system: Fedora 19
Description:
SET lc_messages TO 'en_US.UTF-8';
DROP TABLE IF EXISTS
mytable;
CREATE TABLE
mytable
(
id INT NOT NULL PRIMARY KEY,
vtext TEXT NOT NULL,
vrange INT8RANGE NOT NULL
);
INSERT
INTO mytable
SELECT 1, t, t::INT8RANGE
FROM (
VALUES
('[1, 10]')
) q(t);
CREATE INDEX
ix_mytable_vrange
ON mytable
USING GIST (vrange);
CREATE INDEX
ix_mytable_vtext
ON mytable
USING GIST ((vtext::INT8RANGE));
--
SET
DROP TABLE
psql:<stdin>:12: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit
index "mytable_pkey" for table "mytable"
CREATE TABLE
INSERT 0 1
CREATE INDEX
psql:<stdin>:30: ERROR: functions in index expression must be marked
IMMUTABLE
--
I expected the second index to be created as well.
--
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: quassnoi@gmail.com
Subject: Re: BUG #8333: Conversions from TEXT to range types are not immutable
In-Reply-To: <E1V2K6i-0008QX-54@wrigleys.postgresql.org>
References: <E1V2K6i-0008QX-54@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