Issue in pg_update

From: Yuriy Tereshchuk <YTereshchuk(at)lohika(dot)com>
To: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Issue in pg_update
Date: 2016-10-16 00:15:38
Message-ID: BN3PR08MB1841A2BE088FE44FEA0095D8CCD10@BN3PR08MB1841.namprd08.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

$ /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
Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for roles starting with 'pg_' ok
Checking for invalid "line" user columns ok
Creating dump of global objects ok
Creating dump of database schemas
ok
Checking for presence of required libraries ok
Checking database user is the install user ok
Checking for prepared transactions ok

If pg_upgrade fails after this point, you must re-initdb the
new cluster before continuing.

Performing Upgrade
------------------
Analyzing all rows in the new cluster ok
Freezing all rows on the new cluster ok
Deleting files from new pg_clog ok
Copying old pg_clog to new server ok
Setting next transaction ID and epoch for new cluster ok
Deleting files from new pg_multixact/offsets ok
Setting oldest multixact ID on new cluster ok
Resetting WAL archives ok
Setting frozenxid and minmxid counters in new cluster ok
Restoring global objects in the new cluster ok
Restoring database schemas in the new cluster
postgres
*failure*

Consult the last few lines of "pg_upgrade_dump_11913.log" for
the probable cause of the failure.
Failure, exiting
$ vim pg_upgrade_dump_11913.log

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...
^
Command was:
-- For binary upgrade, must preserve pg_type oid
SELECT pg_catalog.binary_upgrade_set_next_pg_type_oid('17239'::pg_catalog....

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-10-16 17:50:55 Re: Issue in pg_update
Previous Message Rahila Syed 2016-10-15 22:17:24 ERROR: could not determine which collation to use for view column