Re: Add IS_INDEX macro to brin and gist index - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Add IS_INDEX macro to brin and gist index
Date
Msg-id 202601160852.fadepjixu32p@alvherre.pgsql
Whole thread Raw
In response to Re: Add IS_INDEX macro to brin and gist index  (Japin Li <japinli@hotmail.com>)
List pgsql-hackers
On 2026-Jan-16, Japin Li wrote:

> Thanks for the test. After rethinking, I agree — that BRIN/GIST index-type
> check is useless.
> 
> OTOH, why don't we just do it the same way as the btree index functions?
> 
>     brin_page_items(relname text, blkno bigint);

Operational usefulness.  If you have a corrupt page in a production, you
can extract it from there with get_raw_page() and move it to another
system to do low-level investigation.  If you only have the interface
you suggest, you force the researcher to access the production system
(and run potentially dangerous tools), which may be best avoided.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Zsolt Parragi
Date:
Subject: Re: Custom oauth validator options
Next
From: Anthonin Bonnefoy
Date:
Subject: Re: Add missing JIT inline pass for llvm>=17