Re: killing vacuum analyze process

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Julie Nishimura <juliezain(at)hotmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: killing vacuum analyze process
Date: 2019-09-04 03:56:35
Message-ID: 26191.1567569395@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Julie Nishimura <juliezain(at)hotmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message James Sewell 2019-09-04 06:18:51 Re: Upgrade 96 -> 11
Previous Message Ron 2019-09-04 00:19:49 Re: killing vacuum analyze process