Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists
Дата
Msg-id 20150306204343.GX29780@tamriel.snowman.net
обсуждение исходный текст
Ответ на 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
Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists
Список 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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: #PERSONAL# Reg: date going as 01/01/0001
Следующее
От: dpopova@uvic.ca
Дата:
Сообщение: How to get plpython2 in /lib?