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 1omeIp-0004d6-IE for pgsql-general@arkaria.postgresql.org; Sun, 23 Oct 2022 16:58:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1omeIo-0004Ez-B8 for pgsql-general@arkaria.postgresql.org; Sun, 23 Oct 2022 16:58:22 +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 1omeIo-0004Eq-0q for pgsql-general@lists.postgresql.org; Sun, 23 Oct 2022 16:58:22 +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 1omeIh-0001EY-JR for pgsql-general@lists.postgresql.org; Sun, 23 Oct 2022 16:58:21 +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 29NGwDQO3549953; Sun, 23 Oct 2022 12:58:13 -0400 From: Tom Lane To: "jacktby@gmail.com" cc: pgsql-general Subject: Re: How to find an oid that's not uesd now? In-reply-to: <202210240000544499483@gmail.com> References: <202210240000544499483@gmail.com> Comments: In-reply-to "jacktby@gmail.com" message dated "Mon, 24 Oct 2022 00:00:56 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3549951.1666544293.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 23 Oct 2022 12:58:13 -0400 Message-ID: <3549952.1666544293@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "jacktby@gmail.com" writes: > I'm adding a new index in pg, but I find this. > Duplicate OIDs detected: > Duplicate OIDs detected: > 357 > 357 > found 1 duplicate OID(s) in catalog data > found 1 duplicate OID(s) in catalog data > what sql should I run to find one? https://www.postgresql.org/docs/devel/system-catalog-initial-data.html#SYS= TEM-CATALOG-OID-ASSIGNMENT regards, tom lane