pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Gerrit Fouche <gerrit.fouche@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_upgrade (Checking for reg* data types)
Date: Mon, 30 Sep 2019 16:29:15 -0400
Message-ID: <20190930202915.GC8387@momjian.us> (raw)
In-Reply-To: <CAJGpXMgPWzGC4UhJW4Q4u5xn6NRzriXcfA80X9MBbVya29yGKw@mail.gmail.com>
References: <CAJGpXMgPWzGC4UhJW4Q4u5xn6NRzriXcfA80X9MBbVya29yGKw@mail.gmail.com>

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  <bruce@momjian.us>        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 +





view thread (4+ messages)  latest in thread

Message-ID: <20190930202915.GC8387@momjian.us>
Permalink:  ../20190930202915.GC8387@momjian.us/
Also on:    postgresql.org/message-id/20190930202915.GC8387@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruce@momjian.us, gerrit.fouche@gmail.com
  Subject: Re: pg_upgrade (Checking for reg* data types)
  In-Reply-To: <20190930202915.GC8387@momjian.us>
  References: <CAJGpXMgPWzGC4UhJW4Q4u5xn6NRzriXcfA80X9MBbVya29yGKw@mail.gmail.com> <20190930202915.GC8387@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox