pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julie Nishimura <juliezain@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: killing vacuum analyze process
Date: Tue, 03 Sep 2019 23:56:35 -0400
Message-ID: <26191.1567569395@sss.pgh.pa.us> (raw)
In-Reply-To: <DM6PR08MB501881368C4060D6A7EE633AACB90@DM6PR08MB5018.namprd08.prod.outlook.com>
References: <DM6PR08MB50181EC70E5A8560E230A9DFACB90@DM6PR08MB5018.namprd08.prod.outlook.com>
	<11967.1567552289@sss.pgh.pa.us>
	<DM6PR08MB501881368C4060D6A7EE633AACB90@DM6PR08MB5018.namprd08.prod.outlook.com>

Julie Nishimura <juliezain@hotmail.com> writes:
> Thank you Tom. I can see bunch of old processes running ROLLBACK... Should I kill them or they only way to clear those is to restart the server?

As Ron pointed out, those processes aren't actually running ROLLBACK;
that was just their last query.  They're idle (and not "idle in
transaction") so in theory they're not holding any locks.

After thinking more about it I realize that the process holding the
buffer pin doesn't have to be as old as the VACUUM; so you probably
should just look at pg_locks and see what else has got a lock on
the table the VACUUM is trying to process.  The hypothetical offender
is probably somewhat old, or you'd not have noticed the blockage,
but we don't have any clear evidence as to how old.

			regards, tom lane





view thread (5+ messages)

Message-ID: <26191.1567569395@sss.pgh.pa.us>
Permalink:  ../26191.1567569395@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26191.1567569395@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, juliezain@hotmail.com
  Subject: Re: killing vacuum analyze process
  In-Reply-To: <26191.1567569395@sss.pgh.pa.us>
  References: <DM6PR08MB50181EC70E5A8560E230A9DFACB90@DM6PR08MB5018.namprd08.prod.outlook.com> <11967.1567552289@sss.pgh.pa.us> <DM6PR08MB501881368C4060D6A7EE633AACB90@DM6PR08MB5018.namprd08.prod.outlook.com> <26191.1567569395@sss.pgh.pa.us>

* 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