From: Tom Lane <tgl@sss.pgh.pa.us>
To: Radoslav Nedyalkov <rnedyalkov@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_class.oid at 4B
Date: Wed, 20 Oct 2021 17:20:43 -0400
Message-ID: <2274124.1634764843@sss.pgh.pa.us> (raw)
In-Reply-To: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com>
References: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com>
Radoslav Nedyalkov <rnedyalkov@gmail.com> writes:
> We have a busy database that has oid increasing with 50-100M per month.
> There is no oid type across user attributes anywhere nor user tables with
> oids;
> Not sure where this generation comes from. If you can hint me, it would be
> great.
Lots of short-lived temporary tables, maybe?
> Also what happens when pg_class.oid reaches 4B.
Nothing. The counter will wrap around and you won't notice a thing.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, rnedyalkov@gmail.com
Subject: Re: pg_class.oid at 4B
In-Reply-To: <2274124.1634764843@sss.pgh.pa.us>
References: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com> <2274124.1634764843@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox