pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dominic Jones <jonesd@xmission.com>
Cc: pgsql-general@postgresql.org
Subject: Re: 10.4 upgrade, function markings, and template0
Date: Mon, 14 May 2018 17:02:25 -0400
Message-ID: <5113.1526331745@sss.pgh.pa.us> (raw)
In-Reply-To: <20180514144244.fe352659f5085e209594f3ff@xmission.com>
References: <20180514144244.fe352659f5085e209594f3ff@xmission.com>

Dominic Jones <jonesd@xmission.com> 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




view thread (8+ messages)  latest in thread

Message-ID: <5113.1526331745@sss.pgh.pa.us>
Permalink:  ../5113.1526331745@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5113.1526331745@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jonesd@xmission.com
  Subject: Re: 10.4 upgrade, function markings, and template0
  In-Reply-To: <5113.1526331745@sss.pgh.pa.us>
  References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox