Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJ0z-00088n-Kj for pgsql-general@arkaria.postgresql.org; Wed, 20 Oct 2021 21:20:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mdJ0y-0003hY-D5 for pgsql-general@arkaria.postgresql.org; Wed, 20 Oct 2021 21:20:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJ0y-0003hO-3a for pgsql-general@lists.postgresql.org; Wed, 20 Oct 2021 21:20:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdJ0w-0003Nj-0z for pgsql-general@postgresql.org; Wed, 20 Oct 2021 21:20:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 19KLKh7L2274125; Wed, 20 Oct 2021 17:20:43 -0400 From: Tom Lane To: Radoslav Nedyalkov cc: pgsql-general Subject: Re: pg_class.oid at 4B In-reply-to: References: Comments: In-reply-to Radoslav Nedyalkov message dated "Wed, 20 Oct 2021 23:29:20 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2274123.1634764843.1@sss.pgh.pa.us> Date: Wed, 20 Oct 2021 17:20:43 -0400 Message-ID: <2274124.1634764843@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Radoslav Nedyalkov 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