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 1fILQV-0001XT-UV for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:54: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 1fILQU-00067r-GG for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:54:38 +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 1fILQT-00067h-UR for pgsql-general@lists.postgresql.org; Mon, 14 May 2018 21:54:38 +0000 Received: from out03.mta.xmission.com ([166.70.13.233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fILQP-00077q-Aj for pgsql-general@postgresql.org; Mon, 14 May 2018 21:54:36 +0000 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fILQN-0001Nz-Cy; Mon, 14 May 2018 15:54:31 -0600 Received: from 174-23-177-12.slkc.qwest.net ([174.23.177.12] helo=localhost) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1fILQM-0006p3-Og; Mon, 14 May 2018 15:54:31 -0600 Date: Mon, 14 May 2018 15:51:38 -0600 From: Dominic Jones To: Tom Lane Cc: pgsql-general@postgresql.org Message-Id: <20180514155138.9b6ce56efdb3c20272d560ee@xmission.com> In-Reply-To: <5113.1526331745@sss.pgh.pa.us> References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.31; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-XM-SPF: eid=1fILQM-0006p3-Og;;;mid=<20180514155138.9b6ce56efdb3c20272d560ee@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=174.23.177.12;;;frm=jonesd@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19Z8sjNZ6JfIRb5UwKL/K0W X-SA-Exim-Connect-IP: 174.23.177.12 X-SA-Exim-Mail-From: jonesd@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa04.xmission.com X-Spam-Level: * X-Spam-Status: No, score=1.0 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG,XM_Multi_Part_URI autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 1.2 XM_Multi_Part_URI URI: Long-Multi-Part URIs * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: *;Tom Lane X-Spam-Relay-Country: X-Spam-Timing: total 244 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 2.3 (1.0%), b_tie_ro: 1.58 (0.6%), parse: 0.71 (0.3%), extract_message_metadata: 13 (5.2%), get_uri_detail_list: 1.23 (0.5%), tests_pri_-1000: 7 (3.0%), tests_pri_-950: 0.99 (0.4%), tests_pri_-900: 0.79 (0.3%), tests_pri_-400: 17 (7.0%), check_bayes: 16 (6.6%), b_tokenize: 4.5 (1.8%), b_tok_get_all: 6 (2.3%), b_comp_prob: 2.1 (0.9%), b_tok_touch_all: 2.4 (1.0%), b_finish: 0.56 (0.2%), tests_pri_0: 104 (42.6%), check_dkim_signature: 0.57 (0.2%), check_dkim_adsp: 2.9 (1.2%), tests_pri_500: 96 (39.3%), poll_dns_idle: 84 (34.6%), rewrite_mail: 0.00 (0.0%) Subject: Re: 10.4 upgrade, function markings, and template0 X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 14 May 2018 17:02:25 -0400 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). > > regards, tom lane > Yes, the link does address the issue and answer the question. It looks like I didn't see the previous upgrade's discussion because the change to which it was tied didn't appear to be relevant to the database deployment involved. -- Dominic Jones