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 1j487s-0005mM-47 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 19:01:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j487q-0000B8-Te for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 19:01:42 +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 1j487q-0000B1-LG for pgsql-bugs@lists.postgresql.org; Tue, 18 Feb 2020 19:01:42 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j487m-000587-4I for pgsql-bugs@postgresql.org; Tue, 18 Feb 2020 19:01:40 +0000 Received: by mail-qv1-xf43.google.com with SMTP id s6so602765qvq.4 for ; Tue, 18 Feb 2020 11:01:37 -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=riSG7HrNeSG6VX5V6K9WyeZFudaVaQxU4xUWwKCg3xw=; b=ygVEAXJrgeMNoIJMjAEzF6s852oho5+4eQ0uDNknM7FVHs2iSuv7//DRFkRlgfk8jn +E9Tj4MOxKYWAhwdkdIKgu9zPLODqXo7CvNWbrqssVgJk7yvMpcOCNEviCTd/Sm4Pqh6 d7LDbN+6atJbCYTuxEY1GDP87HGZQ6eiJYHbZXAn7WOCZTEfEON138/ocy2/nNpmmFYJ yRAjVWpBvi0/YqmE41NRYEuLti8/8T0QSAEq1RY11uIjzVTUfu0Ab0IwpWT6cO4FNYSa 5I8KADcfT8Hq8MQKwZGV/PT/7nRIFqpA5lnFHdQRvDpfMhT3c63/F8QEyIMrDg52ws9N hgYA== 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=riSG7HrNeSG6VX5V6K9WyeZFudaVaQxU4xUWwKCg3xw=; b=NcYzvJjT00dnNX1tu5cy6Zo9jJg8P/2juRGSjCkAF1CaGNksjCkYw5xMRWlxb/cZh1 t1xbmwaob7Xrm1dIYihAiGOXZxy36E25cVQs3Y78tB6IhgQyf4iAzSsy8VgxHYfNHzXP sPubXjlFXjVjSoWQPmnkIuqjAU/5BUNZ34QPUfPju9JVQBL+hAB88JrH7L7B/HpTRXqh FVmAL40PsKkSC0yWhAeagIldkUzw010ykNjOKpLjEYLrCkQoJ1fDwKLkGNFKNVrOdlWq zxcssZQ7GIG5jKl45DMnWK+WXFEjNrNXmFJQpNBL2IXVmtQ1FWwhZ2Au2rMJUepFW5jm ch9Q== X-Gm-Message-State: APjAAAXHA6fb2Y+Tq/bzGsxBJdSm0iM5Q3EqisIUTi4DaxoWTX8INCfo tvyVzcIRRzEUgm0h58diRPjUvg== X-Google-Smtp-Source: APXvYqyUjbUhqCJSo2ZcgTUYyB4X/Rr+LnBIqHrwbazBT6S0E2kD06B7Qtuq4I1sno/GBhwAbJ9Jhg== X-Received: by 2002:a0c:c310:: with SMTP id f16mr18219172qvi.65.1582052496102; Tue, 18 Feb 2020 11:01:36 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id d20sm2344887qkg.8.2020.02.18.11.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 11:01:35 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0D1263006B7; Tue, 18 Feb 2020 16:01:33 -0300 (-03) Date: Tue, 18 Feb 2020 16:01:33 -0300 From: Alvaro Herrera To: hubert depesz lubaczewski Cc: pgsql-bugs mailing list , Peter Eisentraut Subject: Re: gen_random_uuid() is immutable in Pg 13devel Message-ID: <20200218190133.GA22454@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200218185452.GA8710@depesz.com> 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, 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. It seems an oversight to me. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services