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 1iF2IN-00077t-JK for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:29:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iF2IL-0000fD-2W for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:29:21 +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 1iF2IK-0000ex-PE for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 20:29:20 +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.89) (envelope-from ) id 1iF2IH-00025j-UO for pgsql-general@postgresql.org; Mon, 30 Sep 2019 20:29:20 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1iF2IF-0002Fw-O2; Mon, 30 Sep 2019 16:29:15 -0400 Date: Mon, 30 Sep 2019 16:29:15 -0400 From: Bruce Momjian To: Gerrit Fouche Cc: pgsql-general@postgresql.org Subject: Re: pg_upgrade (Checking for reg* data types) Message-ID: <20190930202915.GC8387@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Sep 30, 2019 at 11:15:47AM +0200, Gerrit Fouche wrote: > > Hi All, > > I am trying to upgrade Postgresql 11.5 to 12 RC1, OS Centos 6. Running > pg_upgrade with --check it fails with "Checking for reg* data types in user > tables" The table listed are: pg_ts_dict,pg_ts_parser. Trying to drop the > tables I get msg " permission denied: "pg_ts_dict" is a system catalog" I also > for same reason can not remove the oids "ALTER TABLE pg_ts_parser set without > oids;" > > From pg_catalog.pg_extension the following are listed: > plpgsql,pg_stat_statements,tablefunc. So the Text search extension is not in > use. > > This database was upgrade since Postgresql 8.3 by using "pg_dumpall -p 5432 | > psql -d postgres -p 5433" and not pg_upgrade. Wow, 8.3 --- that is old. Please do psql \d on those two tables and show us the output. System tables are created by pg_upgrade as fresh, not copied from the old cluster, so I am confused how you have reg* entries in there. Also, I wonder if there are pg_ts_dict and pg_ts_parser tables that are not in pg_catalog, but in some other schema, and those are what is complaining about. (The pg_upgrade query specifically skips checking pg_catalog tables.) I think maybe pg_upgrade should always output the schema name for such objects --- I think someone propsed a patch for that recently. -- 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 +