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 1g0abd-0001H6-5Y for pgsql-general@arkaria.postgresql.org; Thu, 13 Sep 2018 23:01:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0abb-0008E6-Q4 for pgsql-general@arkaria.postgresql.org; Thu, 13 Sep 2018 23:00:59 +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 1g0abb-0008Dz-Ej for pgsql-general@lists.postgresql.org; Thu, 13 Sep 2018 23:00:59 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g0abZ-0007u0-5u for pgsql-general@lists.postgresql.org; Thu, 13 Sep 2018 23:00:58 +0000 Received: by mail-io1-xd36.google.com with SMTP id v14-v6so4565696iob.4 for ; Thu, 13 Sep 2018 16:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:cc:references:message-id:subject:to:date:in-reply-to :from; bh=i+jg3tDC+3vt4BQN8ePFGWDLC5lotLcV9xCJuVbDPlM=; b=KsPWPGc1WpQtYfKO7c7Sq1477ElQxQuucTRq7z/rKeHJ3O3+WLqnZrtjncVeqSYjEF qNMJBE64YAzEB6P0j43+vN7r0qUDSjBBcTk3iXcUsyH1XJSh0daDnjRcxfF1+mmXJGfZ +wefhgX/jYLL12/QhLsbfXbxy3y4v4QRvUkRrewBlfBTStfcTxJjXvjXCDIEKg88y0SP eBWIV2+sfkL6ST7Ob0TqYh9Oh3lMhOo99ik9QiHowHlGcW/Hlz6769o/aw0ma4kTnF+F 1Fq7jROfE7EXcFFNJHOa2ofUqot0UU8IB315qKWdTrt9PS6j1s4M4i8+kBMCfYkTw1fa rnUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:cc:references:message-id:subject:to :date:in-reply-to:from; bh=i+jg3tDC+3vt4BQN8ePFGWDLC5lotLcV9xCJuVbDPlM=; b=pv/T6osX5U3ngykxatHTYWu/d4QpDLMkKa4HPngsfIav29CXmLc25ALs9Si/AnAL2g F3sXxIXaPA6kYp3CUzrpyK84DfluzRrrv/Qha/oY5rgpjtOwTVD2Wv6ufND6VdEfrq9e UlQ5UbcKIMr9SVaWkObacq1pjvWmY+oG3QbgkWkr5oO9jDMhnnNrCZLSk5S6m4bbxGwJ bOEcJWiDIXiBccKD2jDTzkIHtI07RD+XFeQWKqnxatqEIJEfiEsDslY+SIpTO+P/9UTR 3GRrw/Z3SZKJ969mPOqOdlUcFyCrb6B3eo7GTtdrQ27d3Z3x+9N86EBpNnNx4aYiShrj NE+g== X-Gm-Message-State: APzg51DnqGguZKbNuyRXdEfpKjqpbWp66sby9cYzuSBD9ykfxmvqFKbA Iy5trXOXEVQMCg6IwltYI0GVPQlB X-Google-Smtp-Source: ANB0VdbEYmaw80gp2fuPzxqluiWV1gZaFFG8K54KG0/DwNlQqxftfVjKbPHOSN/b6EtpGkhsUWodAg== X-Received: by 2002:a6b:bd82:: with SMTP id n124-v6mr8264221iof.244.1536879655842; Thu, 13 Sep 2018 16:00:55 -0700 (PDT) Received: from localhost (182.143.225.35.bc.googleusercontent.com. [35.225.143.182]) by smtp.gmail.com with ESMTPSA id z193-v6sm5366419ioe.78.2018.09.13.16.00.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 16:00:55 -0700 (PDT) Mime-Version: 1.0 Cc: "pgsql-generallists.postgresql.org" References: X-Mailer: Polymail Message-ID: <5b9aebc53f8b8f4e0c000002@polymail.io> Subject: Re: Behaviour when autovacuum is canceled To: "David G. Johnston" Date: Thu, 13 Sep 2018 16:00:45 -0700 In-Reply-To: From: =?UTF-8?q?Mart=C3=ADn_Fern=C3=A1ndez?= Content-Type: multipart/alternative; boundary=93e5f0fb83a6b0c0492d2037be6d6311efbdd330565539e547d3efde26ac List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --93e5f0fb83a6b0c0492d2037be6d6311efbdd330565539e547d3efde26ac Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 David, Thanks a lot for the quick reply.=C2=A0 I clearly misunderstood the references in the code.=C2=A0 Best, Mart=C3=ADn On Thu, Sep 13th, 2018 at 7:55 PM, "David G. Johnston" wrote: >=20 >=20 > On Thu, Sep 13, 2018 at 3:45 PM, Mart=C3=ADn Fern=C3=A1ndez < fmartin91@g= mail.com > wrote: >=20 >=20 >> From what I could understand (that can be totally wrong), the vacuum >> process is split in multiple small transactions. If the autovacuum is >> canceled, could it be possible that only the latest transaction work be >> lost=C2=A0 >>=20 >=20 >=20 >=20 > From the docs: >=20 >=20 > "VACUUM cannot be executed inside a transaction block." >=20 >=20 > As it is non-transactional any work it performs is live immediately and > irrevocably as it occurs. >=20 >=20 > David J. >=20 >=20 > --93e5f0fb83a6b0c0492d2037be6d6311efbdd330565539e547d3efde26ac Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 3D""
David,=

Thanks a lot for the quick = reply. 

I clearly misun= derstood the references in the code. 

<= div style=3D"">Best,
Mart=C3=ADn<= /div>

=
On Thu, Sep 13th, 2018 at 7:55 PM, "David G. Johnston" <= ;david.g.johnston@gmail.com> wrote:
On Thu, S= ep 13, 2018 at 3:45 PM, Mart=C3=ADn Fern=C3=A1ndez <fmartin91@gm= ail.com> wrote:<= /span>
From what I could understand (that can be totally wrong), the va= cuum process is split in multiple small transactions. If the autovacuum is = canceled, could it be possible that only the latest transaction work be los= t 

From the docs:

"VACUUM cannot be executed i= nside a transaction block."

As it is non-transactional any work it performs is live immediately and i= rrevocably as it occurs.

D= avid J.


=
--93e5f0fb83a6b0c0492d2037be6d6311efbdd330565539e547d3efde26ac--