Re: BUG #18866: Running pg_freespace() on views triggers an Abort - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #18866: Running pg_freespace() on views triggers an Abort
Date
Msg-id 1280897.1742920635@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #18866: Running pg_freespace() on views triggers an Abort  (Tender Wang <tndrwang@gmail.com>)
Responses Re: BUG #18866: Running pg_freespace() on views triggers an Abort
List pgsql-bugs
Tender Wang <tndrwang@gmail.com> writes:
> PG Bug reporting form <noreply@postgresql.org> 于2025年3月25日周二 22:42写道:
>> Passing a view to pg_freespace() triggers an Abort on HEAD.

> I think we can remove the Assert in smgropen().
> Any thoughts?

That seems like a "solution" that will allow other bugs.  pg_freespace
should be fixed to verify RELKIND_HAS_STORAGE() before it tries to
access said storage.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tender Wang
Date:
Subject: Re: BUG #18866: Running pg_freespace() on views triggers an Abort
Next
From: Wyatt Berlinic
Date:
Subject: ltree gist index "incomplete split"