From: | Sergey Aleynikov <sergey(dot)aleynikov(at)gmail(dot)com> |
---|---|
To: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
Cc: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: Xmax precedes relation freeze threshold errors |
Date: | 2022-06-16 08:45:55 |
Message-ID: | CAKNj8S27f1PUQnREQnvwemdrvPAQ_u+Q_+KuhtKmi+Be=Oz=uQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, Jun 14, 2022 at 8:48 PM Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
> Oh, that definitely sounds like a bug in amcheck then. Please post the
> output of
> select * from heap_page_items(get_raw_page('the table', the_page));
> for some of these pages, preferrably just around the time the errors for
> these pages are shown; maybe someone can figure out which tuples cause
> these errors and how to fix amcheck. It might be difficult to catch
> tuples 'in the act' though.
I've switched to another table with less update traffic and was able
to catch the following:
(verify_heapam before)
blkno | offnum | attnum | msg
-------+--------+--------+-----------------------------------------------------------------
20365 | 8 | | xmax 1965224948 precedes relation freeze
threshold 1:1914858032
20365 | 12 | | xmin 1965224948 precedes relation freeze
threshold 1:1914858032
(2 rows)
(heap_page_items dump) - https://dpaste.org/fWzEj/raw
(verify_heapam after)
blkno | offnum | attnum | msg
-------+--------+--------+-----------------------------------------------------------------
20365 | 12 | | xmax 1965224955 precedes relation freeze
threshold 1:1914858032
20365 | 15 | | xmin 1965224955 precedes relation freeze
threshold 1:1914858032
(2 rows)
If this is not enough, I can try to catch even more matching before/after pairs.
Best regards,
Sergey Aleynikov
From | Date | Subject | |
---|---|---|---|
Next Message | Nikhil Ingale | 2022-06-16 09:43:40 | Postgres performance issue |
Previous Message | Tom Lane | 2022-06-15 19:04:34 | Re: Joining to views & the query planner |