Re: Fixing order of resowner cleanup in 12, for Windows - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Fixing order of resowner cleanup in 12, for Windows
Date
Msg-id CAA4eK1+O4DwdW3RL13t1S572t7tW8kRDdm7A+Gr3Whj2EHavWQ@mail.gmail.com
Whole thread Raw
In response to Re: Fixing order of resowner cleanup in 12, for Windows  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Mon, May 6, 2019 at 4:41 PM Thomas Munro <thomas.munro@gmail.com> wrote:
>
> On Mon, May 6, 2019 at 9:26 PM Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> > If so, I am getting it both before and after your patch.
>
> Huh.  I thought the only problem here was the phenomenon demonstrated
> by [1].  I'm a bit stumped... if we've closed all the handles in every
> backend before detaching, and then the last to detach unlinks all the
> files first and then the directory, how can we get that error?
>

Yeah, I am also not sure what caused that and I have verified it two
times to ensure that I have not made any mistake.  I can try once
again tomorrow after adding some debug messages, but if someone else
can also once confirm the behavior, it would be good.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Fixing order of resowner cleanup in 12, for Windows
Next
From: Dilip Kumar
Date:
Subject: Re: POC: Cleaning up orphaned files using undo logs