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 1iF2MZ-0007MN-AS for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:33:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iF2MX-00046v-U6 for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 20:33:41 +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 1iF2MX-00046g-JX for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 20:33:41 +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 1iF2MU-0002KI-QK for pgsql-general@postgresql.org; Mon, 30 Sep 2019 20:33:41 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1iF2MT-0002oM-Bw; Mon, 30 Sep 2019 16:33:37 -0400 Date: Mon, 30 Sep 2019 16:33:37 -0400 From: Bruce Momjian To: Gerrit Fouche Cc: pgsql-general@postgresql.org Subject: Re: pg_upgrade (Checking for reg* data types) Message-ID: <20190930203337.GA9469@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;" PG 12 outputs the schema.table.column names, separated by dots. I need to see the exact error output. This is the check query: "SELECT n.nspname, c.relname, a.attname " "FROM pg_catalog.pg_class c, " " pg_catalog.pg_namespace n, " " pg_catalog.pg_attribute a, " " pg_catalog.pg_type t " "WHERE c.oid = a.attrelid AND " " NOT a.attisdropped AND " " a.atttypid = t.oid AND " " t.typnamespace = " " (SELECT oid FROM pg_namespace " " WHERE nspname = 'pg_catalog') AND" " t.typname IN ( " /* regclass.oid is preserved, so 'regclass' is OK */ " 'regconfig', " " 'regdictionary', " " 'regnamespace', " " 'regoper', " " 'regoperator', " " 'regproc', " " 'regprocedure' " /* regrole.oid is preserved, so 'regrole' is OK */ /* regtype.oid is preserved, so 'regtype' is OK */ " ) AND " " c.relnamespace = n.oid AND " " n.nspname NOT IN ('pg_catalog', 'information_schema')"); -- 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 +