Re: pg_upgrade issues - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_upgrade issues
Date
Msg-id 20190927175334.GL31412@momjian.us
Whole thread Raw
In response to pg_upgrade issues  (Dave Cramer <davecramer@gmail.com>)
List pgsql-hackers
On Mon, Sep  9, 2019 at 10:58:02AM -0400, Dave Cramer wrote:
> pgjdbc has a bug report which is as follows:
> 
> The database has a table that has a description and a constraint.
> The constraint also has a description.
> 
> somehow the constraint and the table end up with the same OID's after
> pg_upgrade. 
> 
> My understanding of pg_upgrade suggests that shouldn't happen ? I realize oids
> are not guaranteed to be unique, but this seems to be quite a coincidence.

Uh, the table and the table constraint have the same pg_description oid?
pg_upgrade just restores the pg_description descriptions and doesn't
modify them.  Do you get an error on restore because of the duplicate
pg_description oids?

-- 
  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 +



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Document recovery_target_action behavior?
Next
From: Antonin Houska
Date:
Subject: Re: Attempt to consolidate reading of XLOG page