pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <cb@df7cb.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Cc: Joe Van Dyk <joe@tanga.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: [HACKERS] ltree::text not immutable?
Date: Mon, 17 Nov 2014 17:21:17 +0100
Message-ID: <20141117162116.GA3565@msg.df7cb.de> (raw)
In-Reply-To: <29132.1415144894@sss.pgh.pa.us>
References: <CACfv+pL2oX08SSZSoaHpyC=UbfTFmPt4UmVEKJTH7y=2QMRCBw@mail.gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (16+ messages)  latest in thread

Message-ID: <20141117162116.GA3565@msg.df7cb.de>
Permalink:  ../20141117162116.GA3565@msg.df7cb.de/
Also on:    postgresql.org/message-id/20141117162116.GA3565@msg.df7cb.de

 · 

reply

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: cb@df7cb.de, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org, joe@tanga.com
  Subject: Re: [HACKERS] ltree::text not immutable?
  In-Reply-To: <20141117162116.GA3565@msg.df7cb.de>
  References: <CACfv+pL2oX08SSZSoaHpyC=UbfTFmPt4UmVEKJTH7y=2QMRCBw@mail.gmail.com> <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> <20141117162116.GA3565@msg.df7cb.de>

* 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