Re: xmax not zero?

Luca Ferrari <fluca1978@gmail.com>

From: Luca Ferrari <fluca1978@gmail.com>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Date: 2023-10-31T07:23:02Z
Lists: pgsql-general
On Mon, Oct 30, 2023 at 1:54 PM Guillaume Lelarge
<guillaume@lelarge.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