Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIzme-0004Jo-C7 for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Jul 2016 14:51:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIzmd-0003Vq-Uy for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Jul 2016 14:51:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIzmd-0003V1-LT for pgsql-bugs@postgresql.org; Fri, 01 Jul 2016 14:51:07 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bIzmY-0005Xa-I4 for pgsql-bugs@postgresql.org; Fri, 01 Jul 2016 14:51:07 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1bIzmR-0004hC-1Q; Fri, 01 Jul 2016 10:50:55 -0400 Date: Fri, 1 Jul 2016 10:50:55 -0400 From: Bruce Momjian 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 Message-ID: <20160701145055.GA2588@momjian.us> References: <20160701033018.1397.88367@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160701033018.1397.88367@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 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