Re: Test cluster with high OIDs above the signed-int limit (2B+)

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Test cluster with high OIDs above the signed-int limit (2B+)
Date: 2026-04-20 13:08:35
Message-ID: CAFCRh-_NEPF+WZyL90fTjA5dpETeqb70rC+Sb4X+QX+cpdgQnw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Apr 20, 2026 at 2:59 PM Dominique Devienne <ddevienne(at)gmail(dot)com> wrote:
> No. I don't even remember the exact bug

Was an old test using lo_creat(-1) RETURNING the OID, and code doing
`std::stoi(PQgetvalue(...))`. In production we don't use LO and use
the binary protocol, so no such issue, still my original point
remains. We process OIDs in several places, and making sure our test
suite works with high OIDs would be better. If I fully control the
cluster, which is created specifically for the test run, on-the-fly,
it's like to be able to similate high OIDs "instantly".

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2026-04-20 13:22:53 Re: Test cluster with high OIDs above the signed-int limit (2B+)
Previous Message Dominique Devienne 2026-04-20 12:59:51 Re: Test cluster with high OIDs above the signed-int limit (2B+)