Re: could not create directory "...": File exists

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: could not create directory "...": File exists
Дата
Msg-id 15649.1358451114@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: could not create directory "...": File exists  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: could not create directory "...": File exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> Or maybe we should just write this off as a case we can't realistically
>> fix before we have MVCC catalog scans.  It seems that any other fix is
>> going to be hopelessly ugly.

> I feel like we should be able to do better than what we have now, at
> least.  Using ShareLock prevented the specific case that we were
> experiencing and is therefore MUCH better (for us, anyway) than
> released versions where we ran into the error on a regular basis.

If it actually *reliably* fixed the problem, rather than just reducing
the probabilities, that would mean that the updates your other sessions
were doing didn't release RowExclusiveLock early.  Have you dug into the
code to see if that's true?  (Or even more to the point, if it's still
true in HEAD?  I have no idea if all the recent refactoring has changed
this behavior for GRANT.)

My thought about a localized fix is similar to Andres' --- maybe we
could take a snapshot and use a real MVCC scan.
        regards, tom lane



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Removing PD_ALL_VISIBLE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PATCH: optimized DROP of multiple tables within a transaction