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 1r97fK-00ELSy-RA for pgsql-general@arkaria.postgresql.org; Fri, 01 Dec 2023 17:51:02 +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 1r97fJ-008oc8-Dr for pgsql-general@arkaria.postgresql.org; Fri, 01 Dec 2023 17:51:01 +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 1r97fJ-008obz-3W for pgsql-general@lists.postgresql.org; Fri, 01 Dec 2023 17:51:01 +0000 Received: from smtp101.iad3b.emailsrvr.com ([146.20.161.101]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r97fC-008JJa-Bl for pgsql-general@lists.postgresql.org; Fri, 01 Dec 2023 17:50:59 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp13.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id F252A600D5; Fri, 1 Dec 2023 12:50:52 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Help understand why DELETE is so slow From: Christophe Pettus In-Reply-To: Date: Fri, 1 Dec 2023 09:50:49 -0800 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <0402AB48-55B3-44F2-A8B0-45DB3821602A@thebuild.com> References: To: Ping Yao X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: 88b510d6-cced-49f2-b8f0-78268a8026a4-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Dec 1, 2023, at 09:47, Ping Yao wrote: > Can someone help me understand why my simple DELETE query is so slow = to run? Based on the plan, you're running PostgreSQL with the Citus extension, = and the delay is in Citus-related code. This is probably a question = best directed to either the open-source Citus community, or Microsoft.=