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 1sEyML-005SsW-O4 for pgsql-admin@arkaria.postgresql.org; Wed, 05 Jun 2024 21:39:55 +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 1sEyML-00CFqQ-KI for pgsql-admin@arkaria.postgresql.org; Wed, 05 Jun 2024 21:39:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEyML-00CFqI-95 for pgsql-admin@lists.postgresql.org; Wed, 05 Jun 2024 21:39:53 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEyME-003dfK-Of for pgsql-admin@lists.postgresql.org; Wed, 05 Jun 2024 21:39:52 +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 455LdjQ7914350; Wed, 5 Jun 2024 17:39:46 -0400 From: Tom Lane To: M Sarwar cc: "pgsql-admin@lists.postgresql.org" Subject: Re: Truncate DUMMY_mid is blocked DELETE DUMMY_init TABLE In-reply-to: References: Comments: In-reply-to M Sarwar message dated "Wed, 05 Jun 2024 21:23:05 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <914348.1717623585.1@sss.pgh.pa.us> Date: Wed, 05 Jun 2024 17:39:45 -0400 Message-ID: <914349.1717623585@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk M Sarwar writes: > I am truncating the table DUMMY_mid . > Truncate is getting struck due to DELETE operation on the table DUMMY_init. Maybe you have foreign keys connecting those tables? regards, tom lane