Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Nne-0005cO-E5 for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 15:49:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V2Nnc-0007Ow-OM for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2013 15:49:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2K6r-0006OL-O9 for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 11:53:29 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2K6o-0001pt-TK for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 11:53:29 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V2K6n-0005zt-M8 for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 11:53:26 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1V2K6i-0008QX-54 for pgsql-bugs@postgresql.org; Thu, 25 Jul 2013 11:53:20 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8333: Conversions from TEXT to range types are not immutable To: pgsql-bugs@postgresql.org From: quassnoi@gmail.com Message-Id: Date: Thu, 25 Jul 2013 11:53:20 +0000 X-Pg-Spam-Score: -1.0 (-) 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: 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::12: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "mytable_pkey" for table "mytable" CREATE TABLE INSERT 0 1 CREATE INDEX psql::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