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 1hgsS3-0001U3-Q4 for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 15:06:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hgsS2-0004ux-FT for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 15:06:10 +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 1hgsS2-0004pQ-1h for pgsql-general@lists.postgresql.org; Fri, 28 Jun 2019 15:06:10 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgsRx-0002KP-G3 for pgsql-general@postgresql.org; Fri, 28 Jun 2019 15:06:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exquisiteimages.com; s=default; h=Message-ID:References:In-Reply-To:Subject :To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=406cQP1xNJ1p/opuHEhmDw3iDkbDQayiQHTzFH0xAzA=; b=uvS1dTjEvlIEdCaUYmQCXTCXLS yuYUv4y74baTNGEwWtxDPti7TqTyPw2ozXM+RrPuvePuhqM2Qxfq9NJZJlhvuwK0Q+bNR6+/sfvlB 8xZIDKw47IBWIW3bEneg4RpnUngXjStAJYPpKG8pjUIFofV0UVtfcQqna8XaTIz5OKM2GYz2gm+Q0 9gdUz37J8oewxvZARejwcAjfBm3kfTG3fNojh9sUxclIJcqKNtyHfFM4na3n7vLgERgWxlcgQULU5 vxbfKiKNOnFSZWLCdUKQwsfOr7Aq8Km973t4qYgv2G5izIGcCtGoiuB3g6WApIycvAY17oZ0MnR0v 0ic4wMSA==; Received: from [::1] (port=57138 helo=bay.acenet.us) by bay.acenet.us with esmtpa (Exim 4.92) (envelope-from ) id 1hgsRv-003YzZ-Af for pgsql-general@postgresql.org; Fri, 28 Jun 2019 11:06:04 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 28 Jun 2019 11:06:03 -0400 From: tony@exquisiteimages.com To: pgsql-general@postgresql.org Subject: Re: Analyze command running for 2063 minutes so far In-Reply-To: <12082.1561731302@sss.pgh.pa.us> References: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com> <12082.1561731302@sss.pgh.pa.us> Message-ID: <1a57237a742b1f9e4cdd0177b8d5983b@exquisiteimages.com> X-Sender: tony@exquisiteimages.com User-Agent: Roundcube Webmail/1.3.8 X-OutGoing-Spam-Status: No, score=5.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - exquisiteimages.com X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: tony@exquisiteimages.com X-Authenticated-Sender: bay.acenet.us: tony@exquisiteimages.com X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-06-28 10:15, Tom Lane wrote: > 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 Thanks for the offer to look at it Tom. Fortunately or unfortunately as the case may be, after I installed everything to get the stack trace the Analyze process actually finished. The max(last_analyze) did not change and is still showing '6/27/2019 8:27 AM', so I am not sure what it was doing all this time, but nothing seems the worse for it. Thanks again.