pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Radoslav Nedyalkov <rnedyalkov@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_class.oid at 4B
Date: Thu, 21 Oct 2021 07:53:07 +0200
Message-ID: <18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at> (raw)
In-Reply-To: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com>
References: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com>

On Wed, 2021-10-20 at 23:29 +0300, Radoslav Nedyalkov wrote:
> 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.
> Also what happens when pg_class.oid reaches 4B.
> pg_class itself is ~40K.

Hard to say, perhaps you are creating lots of temporary tables (watch out
for pg_attribute bloat!).  The OID counter will simply wrap around, but there
will be no duplicate OIDs in pg_class.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (4+ messages)

Message-ID: <18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at>
Permalink:  ../18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at/
Also on:    postgresql.org/message-id/18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, rnedyalkov@gmail.com
  Subject: Re: pg_class.oid at 4B
  In-Reply-To: <18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at>
  References: <CANhtRiaHo4Ac90GnZiG7iRMJZPCSGLqSRZTANHRrNReSoP5yig@mail.gmail.com> <18daaa4fb24c011b851fa88161c8ac86e335109e.camel@cybertec.at>

* 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