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 1j494p-0007u0-JL for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 20:02:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j493q-0000VF-83 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 20:01:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j493p-0000V7-OV for pgsql-bugs@lists.postgresql.org; Tue, 18 Feb 2020 20:01:38 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j493n-0003Y5-7m for pgsql-bugs@postgresql.org; Tue, 18 Feb 2020 20:01:36 +0000 Received: by mail-qk1-x741.google.com with SMTP id t83so3804400qke.3 for ; Tue, 18 Feb 2020 12:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ELck20sqa+CZdMRV+T+D0t5Wl1ynNP+BfFir1O8EHfQ=; b=tWdTihAWKcjvT05RFwNraQ11c/GgvubOtO4HYyaNkUjUgfuYtRM0V+d+ZYMKL8ey6X nRR6B7OZgVuxSRX8/0wzrLK/ydYZ4SPPqDGXG8WEOAYnwihR+6u3Y93Hfli8GZd74ZbC teu15cerC8ck6gQkbbs3+oNMzftVja27I7djUJWZTz/G2jY54jbBmlpqYL3KyKndeIlh 9DCMZECO7/NpdEM6VMOBTZ7vlYI41c+W3ajTRy0oUOKENH1cXXLFM56iPgIkBUt3EFFS Et5HFyG3YdZx94/5P1nQJdNc2Aq9GTJxOkzA4Vd0bbKtp7rxdbFjmoOnYvIMVjHC7iio Qetg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ELck20sqa+CZdMRV+T+D0t5Wl1ynNP+BfFir1O8EHfQ=; b=G1xwJr9+xCpp2ltpKUDKIKlaS3FX2hHsHmWm1cxPvTzl8OSL3etZmV6Bd/9VfIVv5i B+pI0Y1EX8X2nlWLPVlGw5AYUsGMnL6xdDoCGwbF9CVZ74hTmW5021GHuzBoVuUjNWo3 Z/nMf6Kf7A2ktOSrrKDdr11qJ3ZRkgJW2F9eiUyy10zwoOzhc9G0SLk0hDToitUJ9Bcn UgpGLIFqBRbKpjNFRaH5R3+mW3/Xt7XmIX87JDh82To17f7lmlQHvX6fuRFBBmG3Mj4G DQnC1AVJgRneOGhdbs7a9+cwMP0Qvuh6LdzfBEnr378c1kovT8X0T9P/4zoUm6stZ0ZF YqkA== X-Gm-Message-State: APjAAAUA0l2GaL8L8BrnIKbfesIp1lVWnbnD6m0LKRPXpNkLvcsnKnca IMRuAPsgMDD9kgCDRyUkQfP/uw== X-Google-Smtp-Source: APXvYqxTeeVD0b6LXIXPV7h1CLW7CzXGhTcdaNxwK3Uj00LuqCcVPMnMsW2muX/BnOCNnLMBgg0Pyw== X-Received: by 2002:ae9:e006:: with SMTP id m6mr20654659qkk.94.1582056086302; Tue, 18 Feb 2020 12:01:26 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id z13sm2361894qtu.53.2020.02.18.12.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 12:01:25 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id F38083006B7; Tue, 18 Feb 2020 17:01:22 -0300 (-03) Date: Tue, 18 Feb 2020 17:01:22 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: hubert depesz lubaczewski , pgsql-bugs mailing list , Peter Eisentraut Subject: Re: gen_random_uuid() is immutable in Pg 13devel Message-ID: <20200218200122.GA7247@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-18, Peter Geoghegan wrote: > On Tue, Feb 18, 2020 at 11:01 AM Alvaro Herrera > wrote: > > > It looks that commit 5925e5549890416bcf588334d9d0bc99f8ad6c7f forgot to > > > mark the function as volatile. Not sure if it was intentional. > > > > It seems an oversight to me. > > 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services