Re: 10.4 upgrade, function markings, and template0

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dominic Jones <jonesd(at)xmission(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 10.4 upgrade, function markings, and template0
Date: 2018-05-14 21:10:25
Message-ID: 275c6239-9308-0655-d47f-e37af264f139@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/14/2018 02:02 PM, Tom Lane wrote:
> Dominic Jones <jonesd(at)xmission(dot)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).

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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-05-14 21:22:39 Re: 10.4 upgrade, function markings, and template0
Previous Message Tom Lane 2018-05-14 21:02:25 Re: 10.4 upgrade, function markings, and template0