pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: lyes.amd@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14941: Vacuum crashes
Date: Fri, 1 Dec 2017 18:15:47 +0100
Message-ID: <cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com> (raw)
In-Reply-To: <20171201160907.27110.74730@wrigleys.postgresql.org>
References: <20171201160907.27110.74730@wrigleys.postgresql.org>


On 12/01/2017 05:09 PM, lyes.amd@gmail.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      14941
> Logged by:          Lyes Ameddah
> Email address:      lyes.amd@gmail.com
> PostgreSQL version: 9.6.0

The current minor version in 9.6 branch is 9.6. You're missing a year
worth of bugfixes ...

> Operating system:   CentOs 7
> Description:        
> 
> Hello, 
> 
> I make a complete empty once a week in an automated way and it happens that
> the vacuum is stuck on a table (perhaps another process has a lock first).
> 

1) Completely empty what?

2) Do you mean autovacuum or manual vacuum?

3) Do you see waiting locks in pg_locks catalog while this is happening?

    SELECT * FROM pg_locks WHERE NOT granted;

> 
> The behavior I would like to see is that the void ignores this table and
> moves to another instead of being blocked. 
> 

I believe autovacuum should not block waiting for a heavy-weight lock on
a table since this commit that went into 9.1:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=32896c40ca766146312b28a5a0eb3f66ca030...

So I'm wondering what problem you're running into.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (42+ messages)  latest in thread

Message-ID: <cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com>
Permalink:  ../cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com/
Also on:    postgresql.org/message-id/cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.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-bugs@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, lyes.amd@gmail.com
  Subject: Re: BUG #14941: Vacuum crashes
  In-Reply-To: <cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.com>
  References: <20171201160907.27110.74730@wrigleys.postgresql.org> <cabd2b8a-ebbc-ad38-3ca2-113882afd12a@2ndquadrant.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