pg_upgrade issues

Started by Dave Cramerover 6 years ago2 messages
#1Dave Cramer
davecramer@gmail.com

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.

Dave Cramer

#2Bruce Momjian
bruce@momjian.us
In reply to: Dave Cramer (#1)
Re: pg_upgrade issues

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 +