Re: [Patch] remove duplicated smgrclose

2025-03-25 Thread Masahiko Sawada
On Thu, Mar 13, 2025 at 1:37 AM Steven Niu wrote: > > > > 在 2025/3/12 6:31, Masahiko Sawada 写道: > > On Mon, Mar 10, 2025 at 3:08 AM Steven Niu wrote: > >> > >> > >> > >> Hi, Masahiko > >> > >> Thanks for your comments! I understand your concern as you stated. > >> However, my initial patch was

Re: [Patch] remove duplicated smgrclose

2025-03-13 Thread Steven Niu
在 2025/3/12 6:31, Masahiko Sawada 写道: On Mon, Mar 10, 2025 at 3:08 AM Steven Niu wrote: Hi, Masahiko Thanks for your comments! I understand your concern as you stated. However, my initial patch was split into two parts as Kirill suggested. This thread is about the first part. Another p

Re: [Patch] remove duplicated smgrclose

2025-03-11 Thread Masahiko Sawada
On Mon, Mar 10, 2025 at 3:08 AM Steven Niu wrote: > > > > Hi, Masahiko > > Thanks for your comments! I understand your concern as you stated. > However, my initial patch was split into two parts as Kirill suggested. > This thread is about the first part. Another part is here: > https://commitfes

Re: [Patch] remove duplicated smgrclose

2025-03-11 Thread Steven Niu
Masahiko Sawada 于2025年3月8日周六 12:04写道: > Hi, > > On Sun, Oct 27, 2024 at 12:05 PM Kirill Reshke > wrote: > > > > On Wed, 14 Aug 2024 at 11:35, Steven Niu wrote: > > > > > > Junwang, Kirill, > > > > > > The split work has been done. I created a new patch for removing > redundant smgrclose() funct

Re: [Patch] remove duplicated smgrclose

2025-03-10 Thread Junwang Zhao
> > Hi, Masahiko > > Thanks for your comments! I understand your concern as you stated. > However, my initial patch was split into two parts as Kirill suggested. > This thread is about the first part. Another part is here: > https://commitfest.postgresql.org/patch/5149/ > Or you can take a look a

Re: [Patch] remove duplicated smgrclose

2025-03-08 Thread Junwang Zhao
On Sat, Mar 8, 2025 at 12:04 PM Masahiko Sawada wrote: > > Hi, > > On Sun, Oct 27, 2024 at 12:05 PM Kirill Reshke wrote: > > > > On Wed, 14 Aug 2024 at 11:35, Steven Niu wrote: > > > > > > Junwang, Kirill, > > > > > > The split work has been done. I created a new patch for removing > > > redund

Re: [Patch] remove duplicated smgrclose

2025-03-08 Thread Masahiko Sawada
On Sat, Mar 8, 2025 at 1:37 AM Junwang Zhao wrote: > > Hi Masahiko, > > > > I've looked at the patch and have some comments: > > > > > > The patch removes smgrclose() calls following smgrdounlinkall(), for > > > example: > > > > > > --- a/src/backend/catalog/storage.c > > > +++ b/src/backend/cata

Re: [Patch] remove duplicated smgrclose

2025-03-08 Thread Junwang Zhao
Hi Masahiko, > > I've looked at the patch and have some comments: > > > > The patch removes smgrclose() calls following smgrdounlinkall(), for > > example: > > > > --- a/src/backend/catalog/storage.c > > +++ b/src/backend/catalog/storage.c > > @@ -686,9 +686,6 @@ smgrDoPendingDeletes(bool isCommi

Re: [Patch] remove duplicated smgrclose

2025-03-07 Thread Masahiko Sawada
Hi, On Sun, Oct 27, 2024 at 12:05 PM Kirill Reshke wrote: > > On Wed, 14 Aug 2024 at 11:35, Steven Niu wrote: > > > > Junwang, Kirill, > > > > The split work has been done. I created a new patch for removing redundant > > smgrclose() function as attached. > > Please help review it. > > > > Than

Re: [Patch] remove duplicated smgrclose

2024-10-27 Thread Kirill Reshke
On Wed, 14 Aug 2024 at 11:35, Steven Niu wrote: > > Junwang, Kirill, > > The split work has been done. I created a new patch for removing redundant > smgrclose() function as attached. > Please help review it. > > Thanks, > Steven > > Steven Niu 于2024年8月12日周一 18:11写道: >> >> Kirill, >> >> Good cat

Re: [Patch] remove duplicated smgrclose

2024-08-23 Thread Cary Huang
The following review has been posted through the commitfest application: make installcheck-world: not tested Implements feature: not tested Spec compliant: not tested Documentation:not tested Hi the patch looks good to me as well. Calling smgrclose() right after calli

Re: [Patch] remove duplicated smgrclose

2024-08-15 Thread Steven Niu
Junwang Zhao 于2024年8月15日周四 18:03写道: > On Wed, Aug 14, 2024 at 2:35 PM Steven Niu wrote: > > > > Junwang, Kirill, > > > > The split work has been done. I created a new patch for removing > redundant smgrclose() function as attached. > > Please help review it. > > Patch looks good, actually you ca

Re: [Patch] remove duplicated smgrclose

2024-08-15 Thread Junwang Zhao
On Wed, Aug 14, 2024 at 2:35 PM Steven Niu wrote: > > Junwang, Kirill, > > The split work has been done. I created a new patch for removing redundant > smgrclose() function as attached. > Please help review it. Patch looks good, actually you can make the refactoring code as v3-0002-xxx by using:

Re: [Patch] remove duplicated smgrclose

2024-08-13 Thread Steven Niu
Junwang, Kirill, The split work has been done. I created a new patch for removing redundant smgrclose() function as attached. Please help review it. Thanks, Steven Steven Niu 于2024年8月12日周一 18:11写道: > Kirill, > > Good catch! > I will split the patch into two to cover both cases. > > Thanks, > S

Re: [Patch] remove duplicated smgrclose

2024-08-12 Thread Steven Niu
Kirill, Good catch! I will split the patch into two to cover both cases. Thanks, Steven Junwang Zhao 于2024年8月9日周五 18:19写道: > On Fri, Aug 9, 2024 at 5:20 PM Kirill Reshke > wrote: > > > > On Thu, 1 Aug 2024 at 17:32, Junwang Zhao wrote: > > > > > > Hi Steven, > > > > > > On Wed, Jul 31, 2024

Re: [Patch] remove duplicated smgrclose

2024-08-09 Thread Junwang Zhao
On Fri, Aug 9, 2024 at 5:20 PM Kirill Reshke wrote: > > On Thu, 1 Aug 2024 at 17:32, Junwang Zhao wrote: > > > > Hi Steven, > > > > On Wed, Jul 31, 2024 at 11:16 AM Steven Niu wrote: > > > > > > Hello, hackers, > > > > > > I think there may be some duplicated codes. > > > Function smgrDoPendingD

Re: [Patch] remove duplicated smgrclose

2024-08-09 Thread Kirill Reshke
On Thu, 1 Aug 2024 at 17:32, Junwang Zhao wrote: > > Hi Steven, > > On Wed, Jul 31, 2024 at 11:16 AM Steven Niu wrote: > > > > Hello, hackers, > > > > I think there may be some duplicated codes. > > Function smgrDoPendingDeletes() calls both smgrdounlinkall() and > > smgrclose(). > > But both fu

Re: [Patch] remove duplicated smgrclose

2024-08-02 Thread Steven Niu
Thanks, I have set my name in the Authors column of CF. Steven Junwang Zhao 于2024年8月2日周五 13:22写道: > Hi Steven, > > On Fri, Aug 2, 2024 at 12:12 PM Steven Niu wrote: > > > > Hi, Junwang, > > > > Thank you for the review and excellent summary in commit message! > > > > This is my first contribut

Re: [Patch] remove duplicated smgrclose

2024-08-01 Thread Junwang Zhao
Hi Steven, On Fri, Aug 2, 2024 at 12:12 PM Steven Niu wrote: > > Hi, Junwang, > > Thank you for the review and excellent summary in commit message! > > This is my first contribution to community, and not so familiar with the > overall process. > After reading the process again, it looks like tha

Re: [Patch] remove duplicated smgrclose

2024-08-01 Thread Steven Niu
Hi, Junwang, Thank you for the review and excellent summary in commit message! This is my first contribution to community, and not so familiar with the overall process. After reading the process again, it looks like that I'm not qualified to submit the patch to commitfest as I never had reviewed

Re: [Patch] remove duplicated smgrclose

2024-08-01 Thread Junwang Zhao
Hi Steven, On Wed, Jul 31, 2024 at 11:16 AM Steven Niu wrote: > > Hello, hackers, > > I think there may be some duplicated codes. > Function smgrDoPendingDeletes() calls both smgrdounlinkall() and smgrclose(). > But both functions would close SMgrRelation object, it's dupliacted behavior? > > So

[Patch] remove duplicated smgrclose

2024-07-30 Thread Steven Niu
Hello, hackers, I think there may be some duplicated codes. Function smgrDoPendingDeletes() calls both smgrdounlinkall() and smgrclose(). But both functions would close SMgrRelation object, it's dupliacted behavior? So I make this patch. Could someone take a look at it? Thanks for your help, Ste