Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jm1t4-0006Ra-8Q for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2020 21:15:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jm1t3-0007bP-4V for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2020 21:15:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jm1t2-0007bH-UL for pgsql-bugs@lists.postgresql.org; Thu, 18 Jun 2020 21:15:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jm1t0-0003Pw-Rs for pgsql-bugs@postgresql.org; Thu, 18 Jun 2020 21:15:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05ILFlbV1596577; Thu, 18 Jun 2020 17:15:47 -0400 From: Tom Lane To: Bruce Momjian cc: Jaspreet Singh , "pgsql-bugs@postgresql.org" Subject: Re: PG_UPGRADE FAILED FROM 9.5 to 11* In-reply-to: <20200618201910.GM7349@momjian.us> References: <20200618201910.GM7349@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 18 Jun 2020 16:19:10 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1596575.1592514947.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 18 Jun 2020 17:15:47 -0400 Message-ID: <1596576.1592514947@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Thu, Jun 18, 2020 at 06:42:11PM +0000, Jaspreet Singh wrote: >> We are upgrading our 9.5 postgres database to 11* version and it failed= with >> below error . please help . >> >> pg_restore: [archiver (db)] Error while PROCESSING TOC: >> pg_restore: [archiver (db)] Error from TOC entry 185; 1259 1183792 VIEW >> pg_stat_activity postgres >> LINE 27: "pg_stat_activity"."waiting", > You didn't show us the command that was causing the error. I am > thinking it might be a system view or function that references a renamed > system column. Well, we can see that the problematic view is named "pg_stat_activity", but why would pg_dump have dumped a system view? I am thinking that the source database contains a duplicate (and now obsolete) copy of the pg_stat_activity view. Probably just getting rid of that would do the trick. regards, tom lane