public inbox for [email protected]  
help / color / mirror / Atom feed
From: Torsten Förtsch <[email protected]>
To: pgsql-general <[email protected]>
Subject: Vacuum backend with backend_xmin?
Date: Mon, 10 Jun 2024 14:06:58 +0200
Message-ID: <CAKkG4_mX+yO6oigW7YY6rXy0HTFj_bmrQ0_ktcxLKCxDbVaf4Q@mail.gmail.com> (raw)

Hi,

This is a VACUUM FREEZE process.

-[ RECORD 1 ]------+--------------
pid                | 129471
datid              | 16401
datname            | feed
relid              | 1889166
phase              | scanning heap
heap_blks_total    | 1254901
heap_blks_scanned  | 1017524
heap_blks_vacuumed | 0
index_vacuum_count | 0
max_dead_tuples    | 11184809
num_dead_tuples    | 0
backend_xid        | <NULL>
backend_xmin       | 3267908740
age                | 8572

The query is:

select v.*, a.backend_xid, a.backend_xmin, age(a.backend_xmin)
from pg_stat_progress_vacuum as v join pg_stat_activity as a on a.pid=v.pid

Now, my question is why does a vacuum backend have a backend_xmin? I am
just curious.

Thanks,
Torsten


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]
  Subject: Re: Vacuum backend with backend_xmin?
  In-Reply-To: <CAKkG4_mX+yO6oigW7YY6rXy0HTFj_bmrQ0_ktcxLKCxDbVaf4Q@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