Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4Bom-0004fG-Pb for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 22:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4Bol-00037t-FD for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 22:58:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4Bol-00037m-7F for pgsql-bugs@lists.postgresql.org; Tue, 18 Feb 2020 22:58:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4Boi-00070F-FK for pgsql-bugs@postgresql.org; Tue, 18 Feb 2020 22:58:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01IMw3s1005849; Tue, 18 Feb 2020 17:58:03 -0500 From: Tom Lane To: Alvaro Herrera cc: Peter Geoghegan , hubert depesz lubaczewski , pgsql-bugs mailing list , Peter Eisentraut Subject: Re: gen_random_uuid() is immutable in Pg 13devel In-reply-to: <20200218200122.GA7247@alvherre.pgsql> References: <20200218200122.GA7247@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 18 Feb 2020 17:01:22 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5847.1582066683.1@sss.pgh.pa.us> Date: Tue, 18 Feb 2020 17:58:03 -0500 Message-ID: <5848.1582066683@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Feb-18, Peter Geoghegan wrote: >> Maybe this happened because the default volatility for pg_proc.dat >> entries is not 'volatile' -- it's 'immutable'. > That makes me wonder what should be the default --- and should there > even *be* a default in the first place? Maybe it's better to make > everyone *think* about it every time rather than hoping we'll all > remember, and frequently having it got wrong. Yeah. That default was chosen just to reduce the size of pg_proc.dat (since a large majority of C functions are indeed immutable). But it might be too error-prone this way. I remember worrying about that when we put it in. regards, tom lane