From: Bruce Momjian <bruce@momjian.us>
To: lishengxian123@163.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14221: using postgresql 9.1.22 to 9.3.13 failed using pg_upgrade
Date: Fri, 1 Jul 2016 10:50:55 -0400
Message-ID: <20160701145055.GA2588@momjian.us> (raw)
In-Reply-To: <20160701033018.1397.88367@wrigleys.postgresql.org>
References: <20160701033018.1397.88367@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, Jul 1, 2016 at 03:30:18AM +0000, lishengxian123@163.com wrote:
> pg_restore: creating VIEW pg_buffercache
> pg_restore: creating VIEW pg_stat_statements
> pg_restore: creating VIEW vw_currentqueries
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 167; 1259 103429584 VIEW
> vw_currentqueries dbadmin
> pg_restore: [archiver (db)] could not execute query: ERROR: column
> pg_stat_activity.procpid does not exist
> LINE 14: SELECT "pg_stat_activity"."procpid", "pg_stat_activity"."cli...
> ^
> Command was:
> -- For binary upgrade, must preserve pg_type oid
> SELECT binary_upgrade.set_next_pg_type_oid('103429586'::pg_catalog.oid);
>
> ==============
>
> As I know for the postgresql 9.3 the column already change to pid from
> procpid on table pg_stat_activity . please help to confirm if it bug or not
> . thanks a lot
Yeah, I suggest you drop the view, run pg_upgrade, then recreate the
view.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: bruce@momjian.us, lishengxian123@163.com
Subject: Re: BUG #14221: using postgresql 9.1.22 to 9.3.13 failed using pg_upgrade
In-Reply-To: <20160701145055.GA2588@momjian.us>
References: <20160701033018.1397.88367@wrigleys.postgresql.org> <20160701145055.GA2588@momjian.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