Re: FATAL: lock file "postmaster.pid" already exists

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: FATAL: lock file "postmaster.pid" already exists
Дата
Msg-id CABUevExK+ZkHQtenEPDQgMSAwH4f0JsbAjg4fXEW66=_nvm1CQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: FATAL: lock file "postmaster.pid" already exists  (Mark Dilger <markdilger@yahoo.com>)
Список pgsql-general
On Thu, May 24, 2012 at 2:42 AM, Mark Dilger <markdilger@yahoo.com> wrote:
> FindFirstFile can take a wildcard filename
> pattern.  It appears that we are effectively
> calling FindFirstFile without a pattern, getting
> all 56000 file names with complete stat
> information, doing a poor-man's regex on
> those names, and matching just the temporary
> files.
>
> If RemovePgTempFiles were modified to
> pass a filter, this code might perform better
> on Windows.  I'll look into this.

It might in that case be worthwhile looking at using scandir() on
platforms that support that as well, so that other platforms can
benefit from an optimization as well. Though I'm not sure how much
that would actually help - ISTM that one actually scans the whole
directory anyway, just you don't have to do it yourself...

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: FATAL: lock file "postmaster.pid" already exists
Следующее
От: Pavel Stehule
Дата:
Сообщение: enhanced linestyles for psql