Re: BUG #19664: nbtree: Assertion failure when a custom index AM reuses bthandler - Mailing list pgsql-bugs

From Jingtang Zhang
Subject Re: BUG #19664: nbtree: Assertion failure when a custom index AM reuses bthandler
Date
Msg-id CAPsk3_B2Xd5xXcxMtTd1Budnz4=HzGWYBJNsMA2Lfq9+SOOdzQ@mail.gmail.com
Whole thread
List pgsql-bugs
Hi, Andrey Borodin

Thanks for the explanation.

> The gist2 regression case is a test hack, not a documented interface.  I
> therefore don't think removing this one Assert would make this usage
> valid.  The assertion failure could perhaps be replaced with a regular
> error instead.

What is the intended scope of reusing built-in AM handlers through
CREATE ACCESS METHOD? Is this something we aim to support, or should
extensions provide their own handlers even when reusing an existing
implementation?

The gist2 regression test made me wonder where that boundary lies,
particularly for bthandler. If this usage is not supported, would a
regular error be more appropriate than an assertion failure?

---
Best regards,
Jingtang Zhang



pgsql-bugs by date:

Previous
From: Richard Guo
Date:
Subject: Re: BUG #19653: "variable not found in subplan target list" during planning with parallel parameterized nested loop,
Next
From: Andrey Rachitskiy
Date:
Subject: Re: BUG #19671: IPv4 CIDR Prefix Integer Overflow Bypasses Validation in inet/cidr Casts