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 1rQVli-001l8t-Qq for pgsql-general@arkaria.postgresql.org; Thu, 18 Jan 2024 17:01:31 +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 1rQVlg-004KV5-Ex for pgsql-general@arkaria.postgresql.org; Thu, 18 Jan 2024 17:01:28 +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 1rQVlg-004KUw-46 for pgsql-general@lists.postgresql.org; Thu, 18 Jan 2024 17:01:28 +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 1rQVld-002UeU-5P for pgsql-general@lists.postgresql.org; Thu, 18 Jan 2024 17:01:27 +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 40IH1KWZ2279940; Thu, 18 Jan 2024 12:01:20 -0500 From: Tom Lane To: Jim Vanns cc: Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: Tips on troubleshooting slow DELETE (suspect cascades) In-reply-to: References: <566a6359-940c-457e-b4c6-02cdf00f54f0@aklaver.com> <1905752.1705443374@sss.pgh.pa.us> Comments: In-reply-to Jim Vanns message dated "Thu, 18 Jan 2024 16:37:59 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2279938.1705597280.1@sss.pgh.pa.us> Date: Thu, 18 Jan 2024 12:01:20 -0500 Message-ID: <2279939.1705597280@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jim Vanns writes: > I should have already stated I did begin with EXPLAIN but given they > don't easily work with (the internals) stored/procedures, it wasn't > useful in this case. auto_explain with nested statements enabled might help? regards, tom lane