Re: inefficient loop in StandbyReleaseLockList() - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: inefficient loop in StandbyReleaseLockList()
Date
Msg-id 20211102.095816.955935512275303285.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: inefficient loop in StandbyReleaseLockList()  ("Bossart, Nathan" <bossartn@amazon.com>)
List pgsql-hackers
At Mon, 1 Nov 2021 17:02:49 +0000, "Bossart, Nathan" <bossartn@amazon.com> wrote in 
> On 11/1/21, 9:58 AM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> > "Bossart, Nathan" <bossartn@amazon.com> writes:
> >> Should there be a list_free(trgmNFA->queue) at the end of
> >> transformGraph()?
> >
> > There could be, but that's visibly invoked only once per
> > createTrgmNFAInternal call, so I didn't think it was worthwhile
> > to do so (unlike the case for processState).  If we were concerned
> > about leakage in that function, the hash table would be a far
> > bigger issue.
> 
> Ah, I see it now.  The patch looks good to me, then.

+1

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: inefficient loop in StandbyReleaseLockList()
Next
From: Masahiko Sawada
Date:
Subject: Re: Added schema level support for publication.