From: | Ning Yu <nyu(at)pivotal(dot)io> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Paul Guo <pguo(at)pivotal(dot)io>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Subject: | Re: Possible race condition in pg_mkdir_p()? |
Date: | 2019-08-01 01:15:46 |
Message-ID: | CAKmaiL2jqETjD2VbjutWrJonM66oYe29fvZD2MP=+LeMD8ZKUw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jul 31, 2019 at 2:21 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> That's my impression as well. Please note that this does not involve
> an actual bug in Postgres and that this is rather invasive, so this
> does not really qualify for a back-patch. No objections to simplify
> the backend on HEAD though. It would be good if you could actually
> register a patch to the commit fest app [1] and also rework the patch
> set so as at least PathNameCreateTemporaryDir wins its simplifications
> for the first problem (double-checking the other code paths would be
> nice as well). The EEXIST handling, and the confusion about EEXIST
> showing for both a path and a file need some separate handling (not
> sure what to do on these parts yet).
Thanks for the suggestion and information, we will rework the patch and
register it. The planned changes are: 1) remove the tests (cool!), 2)
simplify PathNameCreateTemporaryDir() and other callers. The EEXIST
handling will be put in a separate patch so depends on the reviews we
could accept or drop it easily.
Best Regards
Ning
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2019-08-01 01:32:44 | Re: partition routing layering in nodeModifyTable.c |
Previous Message | Andres Freund | 2019-08-01 01:15:11 | Re: POC: converting Lists into arrays |