Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0qDa-0001WL-NC for pgsql-general@arkaria.postgresql.org; Fri, 14 Sep 2018 15:41:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0qDY-0005MN-MC for pgsql-general@arkaria.postgresql.org; Fri, 14 Sep 2018 15:41:12 +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.89) (envelope-from ) id 1g0qDY-0005M5-B5 for pgsql-general@lists.postgresql.org; Fri, 14 Sep 2018 15:41:12 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g0qDV-0005OL-FZ for pgsql-general@lists.postgresql.org; Fri, 14 Sep 2018 15:41:11 +0000 Received: by mail-qk1-x742.google.com with SMTP id d15-v6so5414071qkc.1 for ; Fri, 14 Sep 2018 08:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=xdTgeVeCXNJ/V+smxXIN+4+9ad7B/Xo+de2Lag6AzXM=; b=lPVwyxbIoUhJ34UTFKnhB9zQE4SzYQajvErSJzqCFIe6FlhCg/rptqLrDJkqyc7H+U IVcIryp+xJf8GP+FxZYNS802kgQ6RmDzUHZEFQot78fk/mnMzBZ6qtYoXF0jPS5WW1rN ZifdJxnTj3NuOqtAT7YFQUJwv/hChHPQraj2Wce71/QXDUM6xcPLjz/krfv9CF1hzwQW 3mTFdHKhvznk/S3G3P4Ay3fI5ZcZSbim+fM1VjHFeCUeemgXE0reXdfmTJAb2SF2Zpua LrQniweosLqhTu9BxkB7ghTqPrtywoCHMX4jDWzxsZhk/rRpnRIpZHaii5tXg/T+P1AZ wGSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xdTgeVeCXNJ/V+smxXIN+4+9ad7B/Xo+de2Lag6AzXM=; b=J0QgOMV5R4j516diRRHfIuPceSR5ThJCy5TSpHV9XRi7KmFx8K1lnP7gBUinSiRpz8 DyBzm+32doZGm7N78fLeXLwuG9LTZQONfds4E2GpdVPRM3/UPvRge6qGjXtsNQH7m5ER VAp2/on/EojrWiR5QUFKp+dPbnZ7FlofInXkL19BbG/EZ1oxry3Tx/9mV2NKAy/wxuCH ZS3hgf49vutUBVKTSyUXLNKnorjKZZWlfEllrleiny8/+M+MsIeBisdg0Me9sfkb1Es8 4cYIkpQzI3fpDUowZLL2gBMkAtkGNCGX8w4LjwoUtL4OJAuvCIpoNcUuKlexWyyjyIF5 +U1A== X-Gm-Message-State: APzg51AfyoxwL1xz2br676qSaOyYzOtSH9guZqXOU5iFRohWaLd9gdW5 DeTzeu/o2hy6lU3038TbORjX2w== X-Google-Smtp-Source: ANB0VdbysCmmKyRZBEpYLsZOMFzMUdgtznRjXpgwag7Stzx/lgPt9LtvTk4NNK/gKmAJwDNidGJ+uw== X-Received: by 2002:a37:1584:: with SMTP id 4-v6mr8641080qkv.266.1536939668525; Fri, 14 Sep 2018 08:41:08 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id i19-v6sm4941093qtf.87.2018.09.14.08.41.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Sep 2018 08:41:08 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 32698689; Fri, 14 Sep 2018 12:41:06 -0300 (-03) Date: Fri, 14 Sep 2018 12:41:06 -0300 From: Alvaro Herrera To: =?iso-8859-1?Q?Mart=EDn_Fern=E1ndez?= Cc: Tom Lane , "David G. Johnston" , "pgsql-generallists.postgresql.org" Subject: Re: Behaviour when autovacuum is canceled Message-ID: <20180914154106.7nvug4lgfjphuz27@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5b9b0f243f8b8f4e0c000004@polymail.io> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Sep-13, Martín Fernández wrote: > By performing this changes we are going to start relying more heavily > on the autovacuum work and the concern of "lost work" caused by > autovacuum canceling itself when locking contention happen showed up. > I'm guessing that we might be over thinking this and the canceling is > not going to happen as frequently as we think it will. Any DDL run on a table will cancel an autovacuum over that table (except for-wraparound autovacuums). If these are rare, you don't need to worry about that too much. If they are frequent enough that autovacuum will be cancelled regularly in one table, you'll be sad. If you're running vacuum by hand, you'd probably see your DDL blocking behind VACUUM, which would be very noticeable. I think if you don't have trouble today without having tuned the system carefully to avoid such trouble, you're not likely to have trouble with autovacuum either. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services