Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgrfK-0007h5-Qp for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 14:15:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hgrfJ-0000lu-Fj for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 14:15:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgrfJ-0000go-2r for pgsql-general@lists.postgresql.org; Fri, 28 Jun 2019 14:15:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgrfG-0001mK-Hl for pgsql-general@postgresql.org; Fri, 28 Jun 2019 14:15:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5SEF2EC012083; Fri, 28 Jun 2019 10:15:02 -0400 From: Tom Lane To: tony@exquisiteimages.com cc: pgsql-general@postgresql.org Subject: Re: Analyze command running for 2063 minutes so far In-reply-to: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com> References: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com> Comments: In-reply-to tony@exquisiteimages.com message dated "Fri, 28 Jun 2019 08:22:45 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12081.1561731302.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Jun 2019 10:15:02 -0400 Message-ID: <12082.1561731302@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk tony@exquisiteimages.com writes: > I started an Analyze command on a database Wednesday evening at around = > 9:00PM. it is now Friday morning at 8:00 and it is still running. > ... > I did try to execute: > SELECT pg_cancel_backend(4029); > and > SELECT pg_terminate_backend(4029); > but neither had any effect. Hm, that's interesting. Can you get a stack trace from that process? https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend > I am running PostgreSQL version 9.3 on Ubuntu 14.04 with 128GB of = > memory, 800GB PCIe SSD for Database files, 1TB SATA SSD for WAL, 512GB = > SATA SSD for system files. 9.3.what exactly? (You do know that 9.3.x is out of support, so even if this investigation reveals a bug, we're not going to fix it in 9.3.x. I'm willing to look anyway on the chance that there's a bug that also affects later versions.) regards, tom lane