Re: Behaviour when autovacuum is canceled

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Martín Fernández <fmartin91(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Behaviour when autovacuum is canceled
Date: 2018-09-13 22:55:47
Message-ID: CAKFQuwbEYMEZwfSeTHJAax0XdaAHuKRoDf3+Uuf3tJuWSNPLWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Sep 13, 2018 at 3:45 PM, Martín Fernández <fmartin91(at)gmail(dot)com>
wrote:

> 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
>

From the docs:

"VACUUM cannot be executed inside a transaction block."

As it is non-transactional any work it performs is live immediately and
irrevocably as it occurs.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Williams 2018-09-13 22:59:38 Re: Slow shutdowns sometimes on RDS Postgres
Previous Message David G. Johnston 2018-09-13 22:53:15 Re: [External] RE: Estimate time without running the query