Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists - Mailing list pgsql-general

From Stephen Frost
Subject Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists
Date
Msg-id 20150306204343.GX29780@tamriel.snowman.net
Whole thread Raw
In response to Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists  (Matt Landry <lelnet.matt@gmail.com>)
Responses Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists  (Matt Landry <lelnet.matt@gmail.com>)
Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Matt,

* Matt Landry (lelnet.matt@gmail.com) wrote:
> postgres=# select datname, datallowconn from pg_database ;
>   datname  | datallowconn
> -----------+--------------
>  template1 | t
>  template0 | t
>  postgres  | t
>  reporting | t
> (4 rows)

Right, as I mentioned, template0 shouldn't have datallowconn as 'true'.
That's why it's being included in the pg_dumpall.

On your test setup, run (as superuser):

update pg_database set datallowconn = false where datname = 'template0';

Then re-run the pg_upgrade.

    Thanks!

        Stephen

Attachment

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: #PERSONAL# Reg: date going as 01/01/0001
Next
From: dpopova@uvic.ca
Date:
Subject: How to get plpython2 in /lib?