From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | Avinash Kumar <avinash(dot)vallarapu(at)gmail(dot)com> |
Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Postgres crashes at memcopy() after upgrade to PG 13. |
Date: | 2021-03-16 16:44:08 |
Message-ID: | CAH2-WzmtLcUZXvcaKxAU9yfJQzsUm9srkGn9Rx716FMfM7zJ+w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Tue, Mar 16, 2021 at 5:01 AM Avinash Kumar
<avinash(dot)vallarapu(at)gmail(dot)com> wrote:
> I am afraid that it looks to me like a deduplication bug but not sure how this can be pin-pointed. If there is something I could do to determine that, I would be more than happy.
That cannot be ruled out, but I don't consider it to be the most
likely explanation. The index in question passes amcheck verification,
which includes verification of the posting list tuple structure, and
even includes making sure the index has an entry for each row from the
table. It's highly unlikely that it is corrupt, and it's hard to see
how you get from a non-corrupt index to the segfault. At the same time
we see that some other index is corrupt -- it fails amcheck due to a
cross-level inconsistency, which is very unlikely to be related to
deduplication in any way. It's hard to believe that the problem is
squarely with _bt_swap_posting().
Did you actually run amcheck on the failed-over server, not the original server?
Note that you can disable deduplication selectively -- perhaps doing
so will make it possible to isolate the issue. Something like this
should do it (you need to reindex here to actually change the on-disk
representation to not have any posting list tuples from
deduplication):
alter index idx_id_mtime set (deduplicate_items = off);
reindex index idx_id_mtime;
--
Peter Geoghegan
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Anderson | 2021-03-16 16:50:08 | Re: WAL-files is not removing authomaticaly |
Previous Message | Fred Habash | 2021-03-16 16:12:00 | Re: Allowing John to Drop Triggers On Chad's Tables |
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2021-03-16 16:49:51 | Re: [PATCH] pgbench: improve \sleep meta command |
Previous Message | Mark Dilger | 2021-03-16 16:30:00 | Re: pg_amcheck contrib application |