pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yuriy Tereshchuk <YTereshchuk@lohika.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Issue in pg_update
Date: Sun, 16 Oct 2016 13:50:55 -0400
Message-ID: <19298.1476640255@sss.pgh.pa.us> (raw)
In-Reply-To: <BN3PR08MB1841A2BE088FE44FEA0095D8CCD10@BN3PR08MB1841.namprd08.prod.outlook.com>
References: <BN3PR08MB1841A2BE088FE44FEA0095D8CCD10@BN3PR08MB1841.namprd08.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Yuriy Tereshchuk <YTereshchuk@lohika.com> writes:
> $ /usr/local/bin/pg_upgrade -b /home/astro/Postgresql9.1.4/bin -B /usr/local/bin -d /usr/local/pgsql/data.old -D /usr/local/pgsql/data96
> ...
> pg_restore: creating VIEW "public.pg_prepared_statements"
> pg_restore: creating VIEW "public.pg_prepared_xacts"
> pg_restore: creating VIEW "public.pg_roles"
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 162; 1259 17237 VIEW pg_roles astro
> pg_restore: [archiver (db)] could not execute query: ERROR:  column pg_authid.rolcatupdate does not exist
> LINE 14: ...thid"."rolcreaterole", "pg_authid"."rolcreatedb", "pg_authid...
>                                                               ^

Your 9.1 installation seems to have copies in the public schema of a bunch
of system views --- we can see three of them in this log excerpt, and I'm
betting there are more.  There is no mechanism that would automatically
update those copies to be correct for the new database version, and this
failure is occurring precisely because the 9.1 version of pg_roles is
incorrect for 9.6.  I'd suggest dropping all of those views in the source
installation --- why would you need them, anyway?  The originals in
pg_catalog should suffice.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <19298.1476640255@sss.pgh.pa.us>
Permalink:  ../19298.1476640255@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19298.1476640255@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, YTereshchuk@lohika.com
  Subject: Re: Issue in pg_update
  In-Reply-To: <19298.1476640255@sss.pgh.pa.us>
  References: <BN3PR08MB1841A2BE088FE44FEA0095D8CCD10@BN3PR08MB1841.namprd08.prod.outlook.com> <19298.1476640255@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox