Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHmKn-004Bx5-47 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Dec 2023 14:53:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rHmKk-003DrI-Ty for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Dec 2023 14:53:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHmKk-003DrA-L6 for pgsql-bugs@lists.postgresql.org; Mon, 25 Dec 2023 14:53:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHmKd-00DpdW-P6 for pgsql-bugs@lists.postgresql.org; Mon, 25 Dec 2023 14:53:33 +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 3BPErPKU1843285; Mon, 25 Dec 2023 09:53:26 -0500 From: Tom Lane To: Nagaraj Raj cc: pgsql-bugs@lists.postgresql.org Subject: Re: Issue with Running VACUUM on Database with Large Tables In-reply-to: <1237927313.5086260.1703506240368@mail.yahoo.com> References: <1237927313.5086260.1703506240368.ref@mail.yahoo.com> <1237927313.5086260.1703506240368@mail.yahoo.com> Comments: In-reply-to Nagaraj Raj message dated "Mon, 25 Dec 2023 12:10:40 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1843283.1703516005.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 25 Dec 2023 09:53:25 -0500 Message-ID: <1843284.1703516005@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nagaraj Raj writes: > While executing a vacuum analyze on our database containing large tables= (approximately 200k), I encountered an issue. If a table gets dropped dur= ing the vacuum process, the vacuum job fails at that point with an error m= essage stating "OID relation is not found" and exits. I can't replicate that. I get either ERROR: relation "foo" does not exist if you specifically name a nonexistent table, or WARNING: skipping vacuum of "foo" --- relation no longer exists if the table existed at the start but doesn't exist by the time vacuum gets to it. There may be some code path that results in the error you cite, but you'll need to provide more detail about how to duplicate it. regards, tom lane