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 1j4UsR-0007gV-Fa for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Feb 2020 19:19:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4UsQ-0007g7-Bl for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Feb 2020 19:19:18 +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 1j4UsP-0007g0-B6 for pgsql-bugs@lists.postgresql.org; Wed, 19 Feb 2020 19:19:18 +0000 Received: from [66.111.4.27] (helo=out3-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4UsM-0006LT-8T for pgsql-bugs@postgresql.org; Wed, 19 Feb 2020 19:19:16 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 209D1221F7; Wed, 19 Feb 2020 14:19:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 19 Feb 2020 14:19:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=VdPSK5ljhPw7dofz5tEw2/IpaNBHAziHKB35Otu+R No=; b=A5k/xr+Ig38rYiSoxdQKTiOcSJl2pTKCNbw7atnSy8VXGrxxB2ca+gEUb 4ds5Xx7O8d/YXWNBw/jPzkmjZKoJlKN6hmyObDnhzDa4GzSpkFwrnw8obBrQK0GR Vvx7MpTnkUd7YMeS4bJqx8SmDdpUrNwHq4wPb5WdMi/9THhUCdXtpFWCafWFqKDB +QjgeM7xXgcOBPRdZm1zbZibXQselds2AYXq/g8pJpYg/mvjHCOAwGSbtTGnwJWk eECpj9cZoji7AxelHSpRomsnvIusnOZaPX3bXE48RtbGxvBrwRwkdNRaL0yiIRQ+ Kq2Fd89OlzkqxSW8WT5QO+6qj2twA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkedtgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegfedrudehiedrudeludenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df39cbf.dip0.t-ipconnect.de [93.243.156.191]) by mail.messagingengine.com (Postfix) with ESMTPA id 04DB1328005E; Wed, 19 Feb 2020 14:19:01 -0500 (EST) Subject: Re: gen_random_uuid() is immutable in Pg 13devel To: depesz@depesz.com, pgsql-bugs mailing list References: <20200218185452.GA8710@depesz.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 19 Feb 2020 20:19:00 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200218185452.GA8710@depesz.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.27 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-02-18 19:54, hubert depesz lubaczewski wrote: > Hi, > I noticed that get_random_uuid() from pgcrypt is marked as immutable. > > Up to 12.2 it was volatile, and in 13 it became immutable. > > This leads to "interesting" change, that: > > select gen_random_uuid() from generate_series(1,10); > > returns 10 different uuids before 13, and 10 identical ones on 13devel. > > It looks that commit 5925e5549890416bcf588334d9d0bc99f8ad6c7f forgot to > mark the function as volatile. Not sure if it was intentional. Fixed, thanks. It was indeed the result of confusion about the default value. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services