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 1pIv2v-0004qD-LP for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 17:19:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIv2u-00010L-HS for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 17:19:20 +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 1pIv2u-000109-9D for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 17:19:20 +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 1pIv2r-0004gv-QD for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 17:19:19 +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 30KHJF6p532119; Fri, 20 Jan 2023 12:19:15 -0500 From: Tom Lane To: pavol.sekeres8@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17755: database queries get stuck for certain IDs In-reply-to: <17755-e7333e310e686ae4@postgresql.org> References: <17755-e7333e310e686ae4@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 20 Jan 2023 10:26:48 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <532117.1674235155.1@sss.pgh.pa.us> Date: Fri, 20 Jan 2023 12:19:15 -0500 Message-ID: <532118.1674235155@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > we are using PostgreSQL version 9.6.8 on our production environment which we > operate ourselves. You realize, I hope, that you are running a very old minor release of a branch that's been out of support entirely for more than a year. You might consider consulting our release note archives https://www.postgresql.org/docs/release/ to see if your problem matches up with any of the large number of post-9.6.8 fixes. > We noticed that the insert/select queries which get stuck and run infinitely > have specific request_id - starting with 'a6bda' for example > 'a6bda748-0e31-4da6-8fed-331c6c4a7cdb'. Smells a little bit like index corruption, perhaps. I'd try reindexing whatever index(es) exist on that column. But if that doesn't fix it ... > Do you know what could be the cause for our problems and possibly suggest > any solution? Running ancient minor releases is fundamentally unsound database administration practice. At minimum you should be running the last 9.6.x minor release (9.6.24); but really now would be a good time to be thinking about upgrading to some still-in-support branch. If there is an actual Postgres problem here, and it wasn't fixed by 9.6.24, we aren't ever going to fix it in that branch. regards, tom lane