Re: pg_upgrade

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomasz Szypowski <tomasz(dot)szypowski(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: pg_upgrade
Date: 2019-03-18 14:33:01
Message-ID: 2267.1552919581@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tomasz Szypowski <tomasz(dot)szypowski(at)gmail(dot)com> writes:
> while using pg_upgrade I receive an error:

> pg_restore: dropping DATABASE template1
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 1955; 1262 1 DATABASE
> template1 postgres
> pg_restore: [archiver (db)] could not execute query: ERROR: cannot drop a
> template database
> Command was: DROP DATABASE "template1";

Hmmm ... I could believe this would happen if you've removed the
is_template marking from template1 in the source installation.

That doesn't seem like a terribly good idea though, so I'm not
inclined to try to figure a way for pg_dump to work around it.

regards, tom lane

In response to

  • pg_upgrade at 2019-03-18 05:01:54 from Tomasz Szypowski

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2019-03-18 15:31:26 Re: BUG #15641: Autoprewarm worker fails to start on Windows with huge pages in use Old PostgreSQL community/pgsql-bugs x
Previous Message Pavel Stehule 2019-03-18 11:29:45 Re: BUG #15701: oracle fdw issue