Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIKjp-0006es-7t for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:10:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fIKjn-0002ZN-Sn for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:10:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIKjm-0002Z1-Q7 for pgsql-general@lists.postgresql.org; Mon, 14 May 2018 21:10:31 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIKjj-00065N-PL for pgsql-general@postgresql.org; Mon, 14 May 2018 21:10:29 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E04F0224AB; Mon, 14 May 2018 17:10:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 14 May 2018 17:10:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=YK2zrkc4O5+BA00ZUxJbiiIr36U+h qgPTV3hSFsVs1Y=; b=YcyKaVw8BMiHjKOt1QlZhzSPlwFbxrVXkt0BXVhIBTWxF it+qdhaDaYHBg6JykMUaNnyCpgJeCGjQ/rNaP9j4WBJaQCLLzSTwrOHYtjoALqyY Np35Yqy2aWpnxLQbr5KKzz/fD4/n+Mg5f3nxIYbptQ667lysrI2vG9SM9DHxwnld 4kxPy04wL+BNhMk7pj8B5MFw2v8YvfiP/yngGAf+Mw/EMTRtRgHK0YbPklMI4fVn NYblSMsyNdFkEdCbCKoNP+I/OJWEXYMcQmue+1ouGoC7jyac5/GNHyfV+jClqfyg YUXLS1cn3SJQauDlrLShvvvP1C8Kf5smvC9iXiDLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YK2zrk c4O5+BA00ZUxJbiiIr36U+hqgPTV3hSFsVs1Y=; b=HmFlU546hNIVP+X4pZ0G9N AKook/htctRxdCejp7Xef8Y6gyVQT6EhaPOIIEgdJpjNkFh0fgxO1n6meFiaOX/H fOA6L6EGAXufJutiah7yn3GByhMfTU07BfR8fS5AYb5ioTpmyKW1gIcqABxWaRoX Mex2VFc9FCGKRV+qnebMelqO13RQ+q42LAFwFFsCTDPgCFRN/5vY3nigjV1u0/tI QSd39Tnwk12M8BzfJJtq8a9Y5KO52k1DpSUctTAtN8CrjjPYZs4tpATggzd5py3W AN4IAUEsuEdivq/CtDtr7k+IMEJtOAZ6SLsRy2zRuoOu0XRqknYpXN8NjMKtWhJQ == X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 22EE110261; Mon, 14 May 2018 17:10:26 -0400 (EDT) Subject: Re: 10.4 upgrade, function markings, and template0 To: Tom Lane , Dominic Jones Cc: pgsql-general@postgresql.org References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <275c6239-9308-0655-d47f-e37af264f139@aklaver.com> Date: Mon, 14 May 2018 14:10:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5113.1526331745@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/14/2018 02:02 PM, Tom Lane wrote: > Dominic Jones writes: >> The PostgreSQL 10.4 upgrade involves changes to some function markings (see release notes, E.1.2, second and third bullet points for specifics). One way to make these changes is to use `ALTER FUNCTION` to change the functions in your existing databases. While this was mainly straightforward, I'm unclear on whether the `template0` database must be changed in this manner or if it is automatically updated when the upgrade is applied. The documentation indicates that in general you shouldn't manually change the `template0` database. > > Yes, you'd need to fix it in template0 as well, or you risk > subsequently-created databases not having the fix. See previous > minor releases where we've given more painstaking detail about > applying catalog corrections, e.g. 9.6.4: > > https://www.postgresql.org/docs/current/static/release-9-6-4.html > > I didn't bother with spelling it all out in full detail this time, > which maybe was a mistake, but I felt that probably most users > wouldn't need to bother with these changes at all (unlike the case > where a catalog correction is security-related). Well what is nice about the news release is you can cut and past the entire list of commands and do the updates en masse. > > regards, tom lane > -- Adrian Klaver adrian.klaver@aklaver.com