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 1nzIXP-00029R-9R for pgsql-general@arkaria.postgresql.org; Thu, 09 Jun 2022 13:49:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nzIXN-0000BE-PY for pgsql-general@arkaria.postgresql.org; Thu, 09 Jun 2022 13:49:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIXN-0000B5-Er for pgsql-general@lists.postgresql.org; Thu, 09 Jun 2022 13:49:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIXL-00082g-98 for pgsql-general@lists.postgresql.org; Thu, 09 Jun 2022 13:49:24 +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 259DnLZD1989058; Thu, 9 Jun 2022 09:49:21 -0400 From: Tom Lane To: Lucas cc: pgsql-general@lists.postgresql.org Subject: Re: Cluster OID Limit In-reply-to: References: Comments: In-reply-to Lucas message dated "Thu, 09 Jun 2022 06:10:53 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1989056.1654782561.1@sss.pgh.pa.us> Date: Thu, 09 Jun 2022 09:49:21 -0400 Message-ID: <1989057.1654782561@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Lucas writes: > In the company I work for, some clusters reached the OID limit (2^32) and > we had to reinstall the cluster. Uh ... why did you think you needed to do that? The OID counter will wrap around and things should carry on fine. There are defenses to prevent creation of duplicate OID values within any one catalog or TOAST table, and it doesn't particularly matter if there are duplicates across tables. regards, tom lane