public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kashif Zeeshan <[email protected]>
To: Durgamahesh Manne <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: Regarding vacuum freeze locking mechanism
Date: Thu, 18 Jul 2024 10:28:03 +0500
Message-ID: <CAAPsdhdtx61Hi-M1kV=xc1NOkT7MmyrqJ_YYxsasoJqgoFVTWw@mail.gmail.com> (raw)
In-Reply-To: <CAJCZko+DMHw2Cuqu09EKCW_1256GE4qfnhN-BV1X0Uoj0G2JFg@mail.gmail.com>
References: <CAJCZko+DMHw2Cuqu09EKCW_1256GE4qfnhN-BV1X0Uoj0G2JFg@mail.gmail.com>

Hi

On Thu, Jul 18, 2024 at 10:26 AM Durgamahesh Manne <
[email protected]> wrote:

> Hi
>
> Do new inserts block while performing vacuum freeze operations ?
>
Generally, VACUUM FREEZE does not block inserts as PG uses Multi-Version
Concurrency Control (MVCC) which allows multiple transactions to operate on
the same table without interfering with each other.


>
> when autovacuum runs , it will freeze the transaction ID (TXID) of the
> table it's working on. This means that any transactions that started before
> autovacuum began will be allowed to complete.but new transactions will be
> blocked until the autovacuum finishes.
>
> Could you please provide more clarity on this? Which lock triggers on the
> tables are being used by freeze?
>
> Your response is highly appreciated
>
> Regards,
> Durga Mahesh
>
>
>


view thread (3+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Regarding vacuum freeze locking mechanism
  In-Reply-To: <CAAPsdhdtx61Hi-M1kV=xc1NOkT7MmyrqJ_YYxsasoJqgoFVTWw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox