Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKouw-0004B8-5C for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Dec 2017 17:16:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKouv-0000de-OH for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Dec 2017 17:16:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eKouv-0000dU-Fu for pgsql-bugs@lists.postgresql.org; Fri, 01 Dec 2017 17:16:01 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eKous-0003G1-E7 for pgsql-bugs@postgresql.org; Fri, 01 Dec 2017 17:16:00 +0000 Received: by mail-wm0-x242.google.com with SMTP id l141so4794056wmg.1 for ; Fri, 01 Dec 2017 09:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=MCikf5GFOFcM0LSnj4A9sPYvvDzw/eti6g7itrHNYXc=; b=gSjl+P16RHlm7rk+hVaqoBuOvQMyBk8zA2Yk1BQQqhHLXHxxGgTPT7dkGeFAOrr20F 7RE9DcvkznhRTNtOhJB4hoIXtDZvDnwMXe6RztYBA1f1/x1ZX7fcpHPDjTeFPf5HcQ6u QhBNPsPn9S9ZujA7nO+Yb4wrEjLW0HLC3YEuNjunDI8ononIJk3vW6NrfSO1te16fV8L W0hnHouvU/C4gNtUtxLINrG/9jbr7baDQNX6/izVJa2A6DIj+CrR6bxBAlna7LtV5f9j kiiXgGeV/0jzIngXz2vO5qwi7mAbqcde6jdpB+hbGMR+Mh8e69AAAlKjgCclvh8ETaZ/ 8oLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MCikf5GFOFcM0LSnj4A9sPYvvDzw/eti6g7itrHNYXc=; b=LdtsGk97Jlvi9TdOLKAq/sXjII0tFOZm3uw8hcrEaHudaR82NynLQkyzQezmTPmlFs UxlhLIvYEWu0Apb9HRD0jlgkpniRUPPrxhJHcaK1VwlKvLVBL0CjNI7H0e/vHfrbHSHp UIq/2L+VhuoKdMQeR6Tkr8Se5ThmLEc4HQUVaI1n3WMt/u0TNuQaVA9QaXku4IocFxHZ Yx2xjdot/pNkUhHUtz7s/GBPjvEYx3y+/QXBFo3doyI0uYvtC0ebMDmP5hoIau3Ez4wc h1DmxuKrccP4kaDW6PmT5nAq9EE3fntL7AS6rUAaT9MFUAOTquFjrZ5ByxUfEln+Gj7a Ofpw== X-Gm-Message-State: AKGB3mLHlMrynGSqeiC6EVJwqmF4SlNgsGxQ2VinWkKlEcuQD6zBurrj Xn2D0hI8tuPobd88u8uO4Mkw+TuHWDXARCBxgqRcAEeJcCv2cRLhDDrlvSVrAj2MUucjFuq1F4j gQSmz1buWMa9ydnxrh6QspzRXE1h+hGER3+pxvaY3wg1G0B7b+NxpPiRtlpyH2ILzMIPJSecLts 7Zt7bo X-Google-Smtp-Source: AGs4zMaZEWx24y2ZxuuXGVGdPqe2tBKLorpm9Aw3pz7ytg2GdURwkPUijJMPc2yxcXt48ErqyF4XYg== X-Received: by 10.28.211.211 with SMTP id k202mr1691323wmg.113.1512148555291; Fri, 01 Dec 2017 09:15:55 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id x185sm1545363wmx.12.2017.12.01.09.15.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2017 09:15:50 -0800 (PST) Subject: Re: BUG #14941: Vacuum crashes To: lyes.amd@gmail.com, pgsql-bugs@postgresql.org References: <20171201160907.27110.74730@wrigleys.postgresql.org> From: Tomas Vondra Message-ID: Date: Fri, 1 Dec 2017 18:15:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171201160907.27110.74730@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=32896c40ca766146312b28a5a0eb3f66ca0300ed 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