Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQyo9-0003Lr-0Y for pgsql-bugs@arkaria.postgresql.org; Wed, 15 May 2019 18:39:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQyo7-0000NM-KC for pgsql-bugs@arkaria.postgresql.org; Wed, 15 May 2019 18:39:15 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQyo7-0000ND-CZ for pgsql-bugs@lists.postgresql.org; Wed, 15 May 2019 18:39:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQyo4-0004QW-OL for pgsql-bugs@lists.postgresql.org; Wed, 15 May 2019 18:39:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4FId7P4017249; Wed, 15 May 2019 14:39:07 -0400 From: Tom Lane To: richyen3@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15807: pg_upgrade does not account for renaming of system catalog column names In-reply-to: <15807-eea2e5f7dc794282@postgresql.org> References: <15807-eea2e5f7dc794282@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 15 May 2019 18:06:34 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17247.1557945547.1@sss.pgh.pa.us> Date: Wed, 15 May 2019 14:39:07 -0400 Message-ID: <17248.1557945547@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > example: pg_stat_replication.sent_location was renamed to > pg_stat_replication.sent_lsn in v10. Yeah, that's a documented compatibility issue, per the v10 notes: * Rename WAL-related functions and views to use lsn instead of location (David Rowley) > If a view in 9.6 refers to > pg_stat_replication.sent_location, pg_upgrade fails entirely because "column > pg_stat_replication.sent_location does not exist" It is not pg_upgrade's job to fix such things. Sorry. regards, tom lane