Re: Hstore OID bigger than an integer - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Hstore OID bigger than an integer
Date
Msg-id 20190823154023.GA11538@alvherre.pgsql
Whole thread Raw
In response to Hstore OID bigger than an integer  (Roberto Mireles <roberto.mireles@42-q.com>)
List pgsql-hackers
On 2019-Aug-23, Roberto Mireles wrote:

> I have an application that can not access the database due to OID value for
> hstore extension is bigger than an integer value. Application uses a NpgSql
> driver that only supports integer types for OIDs.

That's a bug in Npgsql.  OIDs are unsigned.

> I have searched for a workaround or something that can help us to be able
> to connect to the database, but have not found anything related.
> 
> I also tried by dropping, creating extension again, but same result.

As a workaround, it would probably work to change the OID counter back
to the positive side of the signed value (probably using pg_resetxlog,
beware), then drop and recreate the extension.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Cleanup isolation specs from unused steps
Next
From: Tomas Vondra
Date:
Subject: Re: Hstore OID bigger than an integer