Re: Seq Scan because of stats or because of cast? - Mailing list pgsql-general

From Dominique Devienne
Subject Re: Seq Scan because of stats or because of cast?
Date
Msg-id CAFCRh--1GsKA+8=vBM3YFifw9BtQ==OcsndnFmJ1kdP=1Wohuw@mail.gmail.com
Whole thread Raw
In response to Re: Seq Scan because of stats or because of cast?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, Mar 13, 2023 at 2:53 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> PS: libpq uses unsigned int for Oid. So do OIDs go above 2GB in practice?

Yes, eventually.

OK, I've added support for native OIDs values (i.e. unsigned int, sizeof(4)) in my libpq wrapper.
Tested with binary binding and getting of scalar and array values.

But to truly test this is working OK, I'd need OIDs in the range [2^31, 2^32),
while the OIDs in my DB only reach in the 200M range.

So, any way to force the DB to create OIDs in that special range?
Without hosing my DB / Cluster that is... This is not a throw-away DB / Cluster.

Thanks, --DD

pgsql-general by date:

Previous
From: Celia McInnis
Date:
Subject: Re: Uppercase version of ß desired
Next
From: Adrian Klaver
Date:
Subject: Re: Problems connecting to the server