Re: Assertion failure when autovacuum drops orphan temp indexes.

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assertion failure when autovacuum drops orphan temp indexes.
Date: 2024-10-26 16:14:38
Message-ID: Zx0VbgVafJekXzfC@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Oct 26, 2024 at 12:43:44AM -0700, Masahiko Sawada wrote:
> I got the following assertion failure from an autovaucum worker:
>
> 2024-10-26 00:32:03.685 PDT [830672] LOG: autovacuum: dropping orphan
> temp table "postgres.pg_temp_0.hoge"
> TRAP: failed Assert("HaveRegisteredOrActiveSnapshot()"), File:
> "index.c", Line: 2345, PID: 830672

IMHO the best way to handle this is to just unconditionally push a snapshot
in this code path instead of making assumptions about what callers will do.

--
nathan

Attachment Content-Type Size
unconditionally_push_snap.patch text/plain 1021 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2024-10-26 18:10:29 Re: Replace current implementations in crypt() and gen_salt() to OpenSSL
Previous Message Andrey M. Borodin 2024-10-26 16:07:10 Re: UUID v7