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 1mnQc9-0002lU-Dk for pgsql-performance@arkaria.postgresql.org; Wed, 17 Nov 2021 19:29:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnQc8-0002YZ-3d for pgsql-performance@arkaria.postgresql.org; Wed, 17 Nov 2021 19:29:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnQc7-0002YP-Q2 for pgsql-performance@lists.postgresql.org; Wed, 17 Nov 2021 19:28:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnQc1-0002kE-9G for pgsql-performance@lists.postgresql.org; Wed, 17 Nov 2021 19:28:59 +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 1AHJSoVD2736635; Wed, 17 Nov 2021 14:28:50 -0500 From: Tom Lane To: Justin Pryzby cc: Robert Creager , Thomas Munro , pgsql-performance@lists.postgresql.org Subject: Re: Need help identifying a periodic performance issue. In-reply-to: <20211117190038.GB17618@telsasoft.com> References: <3A76761B-3DDD-4A3C-B791-E73107AFC9A2@spectralogic.com> <0C3B1B2B-6571-477D-A89C-6FA7B6259840@spectralogic.com> <20211117190038.GB17618@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Wed, 17 Nov 2021 13:00:38 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2736633.1637177330.1@sss.pgh.pa.us> Date: Wed, 17 Nov 2021 14:28:50 -0500 Message-ID: <2736634.1637177330@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > It shows that the process is running FK triggers. Indeed, and doing a seqscan therein. Normally I'd suppose that this reflects a lack of an index, but RI_FKey_check should always be doing something that matches the referenced table's unique constraint, so why isn't it using that? regards, tom lane