Re: [PATCH] Windows port, fix some resources leaks - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: [PATCH] Windows port, fix some resources leaks
Date
Msg-id CAEudQApySs14h9vyCd0zvxOBK5GFrocM8n3C+4BTXBJ+DhDLGg@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Windows port, fix some resources leaks  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Em ter., 28 de jan. de 2020 às 17:54, Robert Haas <robertmhaas@gmail.com> escreveu:
On Fri, Jan 24, 2020 at 2:13 AM Michael Paquier <michael@paquier.xyz> wrote:
> No, that's not right.  I think that it is possible to loop over
> ShmemProtectiveRegion in some cases.  And actually, your patch is dead
> wrong because this is some code called by the postmaster and it cannot
> use FATAL.

Uh, really? I am not aware of such a rule.

Well, in postmaster.c has a structure that makes use of the variable ShmemProtectiveRegion, I think it is related to the function in
src/backend/port/win32_shmem.c.
On line 575 in src / backend / port / win32_shmem.c, there is a comment that tells to not use FATAL.
"Don't use FATAL since we're running in the postmaster."

regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] Windows port, fix some resources leaks
Next
From: Robert Haas
Date:
Subject: Re: [PATCH] Windows port, fix some resources leaks