Re: Memory leak of SMgrRelation object on standby - Mailing list pgsql-hackers

From 邱宇航
Subject Re: Memory leak of SMgrRelation object on standby
Date
Msg-id 4E5282D5-397F-45A7-9C58-7C9C396FE561@gmail.com
Whole thread Raw
In response to Re: Memory leak of SMgrRelation object on standby  (Jingtang Zhang <mrdrivingduck@gmail.com>)
Responses Re: Memory leak of SMgrRelation object on standby
List pgsql-hackers
> 2025年8月21日 23:07,Jingtang Zhang <mrdrivingduck@gmail.com> 写道:
>
> Also, in this situation, should startup process be treated as a background
> worker similar to bgwriter/checkpointer and call smgrdestroyall in some
> period?

Agree with that. Maybe we can call smgrdestroyall in startup process when
replaying CHECKPOINT records, just like bgwriter/checkpointer, which free
all smgr objects after any checkpoint.

Best regards,
Yuhang Qiu




pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Identifying function-lookup failures due to argument name mismatches
Next
From: jian he
Date:
Subject: Re: bug: virtual generated column can be partition key