Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqP3N-0001X5-DD for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Nov 2014 16:21:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XqP3M-0003SW-RT for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Nov 2014 16:21:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqP3L-0003QH-8v; Mon, 17 Nov 2014 16:21:23 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XqP3H-0007ua-7o; Mon, 17 Nov 2014 16:21:22 +0000 Received: from msg.df7cb.de (ip-88-153-7-44.hsi04.unitymediagroup.de [88.153.7.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4A3AE69627; Mon, 17 Nov 2014 17:21:17 +0100 (CET) Date: Mon, 17 Nov 2014 17:21:17 +0100 From: Christoph Berg To: Tom Lane Cc: Alvaro Herrera , pgsql-hackers@postgresql.org, Joe Van Dyk , "pgsql-bugs@postgresql.org" Subject: Re: [HACKERS] ltree::text not immutable? Message-ID: <20141117162116.GA3565@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Tom Lane , Alvaro Herrera , pgsql-hackers@postgresql.org, Joe Van Dyk , "pgsql-bugs@postgresql.org" References: <11863.1414092704@sss.pgh.pa.us> <13790.1414094087@sss.pgh.pa.us> <11194.1414356373@sss.pgh.pa.us> <20141027153259.GV1791@alvin.alvh.no-ip.org> <6148.1414862352@sss.pgh.pa.us> <29132.1415144894@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29132.1415144894@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) 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 Re: Tom Lane 2014-11-05 <29132.1415144894@sss.pgh.pa.us> > I wrote: > > An alternative that just occurred to me is to put the no-volatile- > > I/O-functions check into CREATE TYPE, but make it just WARNING not > > ERROR. That would be nearly as good as an ERROR in terms of nudging > > people who'd accidentally omitted a volatility marking from their > > custom types. But we could leave chkpass as-is and wait to see if > > anyone complains "hey, why am I getting this warning?". If we don't > > hear anyone complaining, maybe that means we can get away with changing > > the type's behavior in 9.6 or later. > > Attached is a complete patch along these lines. As I suggested earlier, > this just makes the relevant changes in ltree--1.0.sql and > pg_trgm--1.1.sql without bumping their extension version numbers, > since it doesn't seem important enough to justify a version bump. > > I propose that we could back-patch the immutability-additions in ltree and > pg_trgm, since they won't hurt anything and might make life a little > easier for future adopters of those modules. The WARNING additions should > only go into HEAD though. In HEAD, there's this WARNING now: WARNING: type input function chkpass_in should not be volatile