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 1hgpu1-0002cj-De for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 12:22:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hgpu0-0004Ur-5F for pgsql-general@arkaria.postgresql.org; Fri, 28 Jun 2019 12:22:52 +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 1hgptz-0004Uj-Ds for pgsql-general@lists.postgresql.org; Fri, 28 Jun 2019 12:22:51 +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 1hgptw-0000dh-Bm for pgsql-general@postgresql.org; Fri, 28 Jun 2019 12:22:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exquisiteimages.com; s=default; h=Message-ID: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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pehxtgDhGZKetPWXc2Rsr+tS0c6G1gEImGOUSC/s69c=; b=nNoXwXEI5XC4ewdqJKN6MkTjG 9zLcNkfAQ6PWmd8+KIhoX7S+UX9H0wLnPv/W5rO3KDcnlECf8KSYTK9m+a0TtU10D0AuUc+fFx+m7 +xTnZKZP8MdliNMaW3dC+LeBjCFaLtYjonv3DeSsDEn2J7dA0qhaB2c7o4CT9DZypU8SSPsRdhNU7 Ass+3CgNpWf8zi/0WhlyZIyFMawsilSLoiGgqugVLtwFmblOeGv2oMLhpmixIywksNdzN0vlHijiG I0DiyDVTXEd9rLjC011kJ6oeFBZ5p56BJosMW/DltZjXJqeTlSgNb/NcI6EI0ynXPkelECPWRyXZN Bu8eHH4ng==; Received: from [::1] (port=32871 helo=bay.acenet.us) by bay.acenet.us with esmtpa (Exim 4.92) (envelope-from ) id 1hgptt-00187r-NA for pgsql-general@postgresql.org; Fri, 28 Jun 2019 08:22:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 28 Jun 2019 08:22:45 -0400 From: tony@exquisiteimages.com To: pgsql-general@postgresql.org Subject: Analyze command running for 2063 minutes so far Message-ID: <56d87953bc1671e26b0a159b29ed9a85@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 Hello, 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. If I execute the query: select max(last_analyze) from pg_stat_user_tables; The result I receive is: 6/27/2019 8:27 AM So it appears that no analyze information has been written to the pg_stat_user_tables for 24 hours. When I execute the "top" command the postgres instance running the "analyze" command is using 97 to 100% of one of the cores. Currently the overall performance of the server is not being impacted. I have eleven other cores and it is seldom that more than 9 have 90% or more utilization and the SSD appears to not be slowed much by whatever is happening. I did try to execute: SELECT pg_cancel_backend(4029); and SELECT pg_terminate_backend(4029); but neither had any effect. Since this is not currently causing any user performance issues I don't plan to try to do anything else until this weekend. Since the pg_cancel_backend and pg_terminate_backend have not had any effect, what should I expect from shutting postgresql down and bringing it back up? 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. Thank you for your assistance.