Re: 10.4 upgrade, function markings, and template0

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Dominic Jones <jonesd(at)xmission(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: 10.4 upgrade, function markings, and template0
Date: 2018-05-14 20:58:44
Message-ID: CAKFQuwarYhN5=CSZA+7v+0FQuEHo1ND7oT7Eh_4y1tkTPnB8vQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, May 14, 2018 at 1:42 PM, Dominic Jones <jonesd(at)xmission(dot)com> wrote:

> Good afternoon,
>
> 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.
>

If you ever go and CREATE DATABASE TEMPLATE template0 you will not get the
correct markings unless you've updated template0 (w/o TEMPLATE template0
you pull from template1, probably want to update that as well).

​Related quest​ion - the post-installation instructions that are part of
the news releases seem like something that should be part of the release
notes...but they are not.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-05-14 21:02:25 Re: 10.4 upgrade, function markings, and template0
Previous Message Dominic Jones 2018-05-14 20:42:44 10.4 upgrade, function markings, and template0