Re: Memory leak fix in psql
От
Japin Li
Тема
Re: Memory leak fix in psql
Дата
Msg-id
MEYP282MB16699E39A1FE9145A25EEBADB6919@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Ответ на
Re: Memory leak fix in psql (Alvaro Herrera)
Список
Дерево обсуждения
Memory leak fix in psql "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
Re: Memory leak fix in psql Mark Dilger <mark.dilger@enterprisedb.com>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
RE: Memory leak fix in psql "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Junwang Zhao <zhjwpku@gmail.com>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Junwang Zhao <zhjwpku@gmail.com>
RE: Memory leak fix in psql "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
Re: Memory leak fix in psql Junwang Zhao <zhjwpku@gmail.com>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
RE: Memory leak fix in psql "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
Re: Memory leak fix in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
Re: Memory leak fix in psql Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
Re: Memory leak fix in psql Japin Li <japinli@hotmail.com>
Re: Memory leak fix in psql Andres Freund <andres@anarazel.de>
Re: Memory leak fix in psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Memory leak fix in psql Michael Paquier <michael@paquier.xyz>
On Thu, 21 Jul 2022 at 14:23, Alvaro Herrera wrote: > On 2022-Jul-21, Japin Li wrote: > >> On Thu, 21 Jul 2022 at 09:48, Michael Paquier wrote: > >> > We are talking about 256 bytes being leaked in each loop when a >> > validation pattern or when a query fails, so I don't see a strong >> > argument in manipulating 10~14 more than necessary for this amount of >> > memory. The contents of describe.c are the same for v15 though, and >> > we are still in beta on REL_15_STABLE, so I have applied the patch >> > down to v15, adding what Alvaro has sent on top of the rest. >> >> Thanks for the explanation! IMO, we could ignore v10-13 branches, however, >> we should backpatch to v14 which also uses the validateSQLNamePattern() >> function leading to a memory leak. > > I'd agree in principle, but in practice the commit from 15 does not apply > cleanly on 14 -- there's a ton of conflicts. I attached a patch for v14 [1] based on master, if you want to apply it, please consider reviewing it. [1] https://www.postgresql.org/message-id/MEYP282MB166974D3883A1A6E25B5FDAEB68E9%40MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM -- Regrads, Japin Li. ChengDu WenWu Information Technology Co.,Ltd.
В списке pgsql-hackers по дате отправления