Re: Assertion failure in smgr.c when using pg_prewarm with partitioned tables - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Assertion failure in smgr.c when using pg_prewarm with partitioned tables
Date
Msg-id CAMbWs49T8hFr571c+b0T4GiDwKow5B1HUMMxav7qhUt75WHpKA@mail.gmail.com
Whole thread Raw
In response to Re: Assertion failure in smgr.c when using pg_prewarm with partitioned tables  (Dilip Kumar <dilipbalaut@gmail.com>)
List pgsql-hackers
On Thu, May 15, 2025 at 6:50 PM Dilip Kumar <dilipbalaut@gmail.com> wrote:
> On Thu, May 15, 2025 at 3:14 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
> > How about adding a check to see whether the target relation has storage,
> > using something like RELKIND_HAS_STORAGE()?

> Yeah, that makes more sense.

+1.  FWIW, not long ago we fixed a similar Assert failure in
contrib/pg_freespacemap by verifying RELKIND_HAS_STORAGE() before
trying to access the storage (see 4623d7144).  Wondering if there are
other similar issues elsewhere in contrib ...

Thanks
Richard



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Assertion failure in smgr.c when using pg_prewarm with partitioned tables
Next
From: Fujii Masao
Date:
Subject: Re: [BUG] Skipped initialization of some xl_xact_parsed_prepare fields