Re: PathNameCreateTemporaryDir() vs concurrency

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: PathNameCreateTemporaryDir() vs concurrency
Дата
Msg-id CA+TgmobmvG_VrYu6uhipCDKQYsp+KANkwQ4dXTjFuKS0NigRnQ@mail.gmail.com
обсуждение исходный текст
Ответ на PathNameCreateTemporaryDir() vs concurrency  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
On Tue, Dec 26, 2017 at 3:11 AM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> While testing parallel hash join today, I saw a couple of errors like this:
>
> 2017-12-26 23:34:37.402 NZDT [13082] ERROR:  cannot create temporary
> subdirectory "base/pgsql_tmp/pgsql_tmp13080.0.sharedfileset": File
> exists
>
> There is a thinko in PathNameCreateTemporaryDir(), a new function
> added in commit dc6c4c9d.  It was designed to tolerate directories
> existing already but forgot to handle it in the third mkdir call, so
> it fails with unlucky timing.  Please see attached.

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: How to Works with Centos
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Comment typo in postgres_fdw.c