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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Test cluster with high OIDs above the signed-int limit (2B+)
Date: 2026-04-20 13:29:38
Message-ID: 195464.1776691778@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dominique Devienne <ddevienne(at)gmail(dot)com> writes:
> Hi. A few weeks ago, one of our clusters, with high DDL churn from
> UTs, crossed the 2B mark for OIDs, which exposed a bug in our code.
> I'm moving into creating clusters on-the-fly for testing, and would
> like to force that situation to avoid a future silent regression,
> since it takes a long time to cross that threshold, and we do move up
> in major versions, so the over-the-threshold cluster will be
> abandoned. How can I achieve that?

See pg_resetwal --next-oid. Don't recall what else you need to say
to avoid breaking the cluster in other ways.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2026-04-20 13:29:56 Re: Test cluster with high OIDs above the signed-int limit (2B+)
Previous Message Ron Johnson 2026-04-20 13:22:53 Re: Test cluster with high OIDs above the signed-int limit (2B+)