Re: xmax not zero?

From: Luca Ferrari <fluca1978(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: xmax not zero?
Date: 2023-10-31 07:23:02
Message-ID: CAKoxK+5KeGm3x-=iwcxu==dO9kt3a_KmgfTbnSjexUzpG_t23w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 30, 2023 at 1:54 PM Guillaume Lelarge
<guillaume(at)lelarge(dot)info> wrote:
> There are many reasons for a non-zero value: row updated or deleted in a rollbacked transaction, row updated or deleted in a current transaction, row locked by a SELECT FOR UPDATE, and perhaps others I don't remember right now.
>

Yes, clearly. What puzzled me was that such xmax was non-zero for a
while (days). Inspecting pg_class.reloptions I found that accidentally
(?) disabled autovacuum on such table, my fault!
I should have checked pg_stat_user_tables at first!

Thanks,
Luca

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2023-10-31 08:44:54 Re: xmax not zero?
Previous Message b55white 2023-10-31 05:08:21 Re: pg_checksums?