pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tony@exquisiteimages.com
To: pgsql-general@postgresql.org
Subject: Analyze command running for 2063 minutes so far
Date: Fri, 28 Jun 2019 08:22:45 -0400
Message-ID: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com> (raw)

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.





view thread (3+ messages)  latest in thread

Message-ID: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com>
Permalink:  ../56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com/
Also on:    postgresql.org/message-id/56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tony@exquisiteimages.com
  Subject: Re: Analyze command running for 2063 minutes so far
  In-Reply-To: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com>
  References: <56d87953bc1671e26b0a159b29ed9a85@exquisiteimages.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox