| From: | Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com> |
|---|---|
| To: | Antonin Houska <ah(at)cybertec(dot)at> |
| Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Robert Treat <rob(at)xzilla(dot)net> |
| Subject: | Re: Adding REPACK [concurrently] |
| Date: | 2026-02-07 14:16:27 |
| Message-ID: | CADzfLwWNv5QDn6qmxCRV-p_ijSTGwNcEZFCOXt09+RmpSG2=+w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi!
> Indeed, the server log seems to indicate relationship to
> VACUUM:
> 2026-02-01 16:44:58.878 UTC autovacuum worker[22589] LOG: automatic
vacuum of table "postgres.pg_catalog.pg_class": index scans: 1
O, it's a good clue!
I have added some vacuum calls for pg_class in a stress test - and now it
fails much more often (check attachment).
It is "ERROR: cache lookup failed for relation" - but I think it may share
the cause with "attempted to overwrite invisible tuple.
See:
https://cirrus-ci.com/build/4852126532239360 - with "Use multiple snapshots
to copy the data."
https://cirrus-ci.com/build/6429084491710464 - with "Use background worker
to do logical decoding."
But I am unable to reproduce the issue with only "Add CONCURRENTLY option
to REPACK command."
https://cirrus-ci.com/build/6467070524653568
Best regards,
Mikhail.
| Attachment | Content-Type | Size |
|---|---|---|
| nocfbot-vX-0001-stress-tests-for-repack-concurrently.patch | application/x-patch | 6.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2026-02-07 15:54:59 | Re: Add 64-bit XIDs into PostgreSQL 15 |
| Previous Message | Chengpeng Yan | 2026-02-07 13:39:08 | Re: [PATCH] ANALYZE: hash-accelerate MCV tracking for equality-only types |