Re: danger of stats_temp_directory = /dev/shm

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: danger of stats_temp_directory = /dev/shm
Дата
Msg-id 25478.1376940338@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: danger of stats_temp_directory = /dev/shm  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: danger of stats_temp_directory = /dev/shm
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> Hm. Is a check like that actually sufficient? The idea of setting
> stats_temp_directory to /dev/shm/postgres or similar in all of several
> clusters on one machine doesn't seem to be that far fetched.

Hm.  We could fairly easily have the lockfile management code also
write a postmaster.pid file into the stats_temp_directory, thus claiming
it in the same way as we do the $PGDATA dir itself.  Not sure it's worth
the trouble though, since we've not heard any field reports of this sort
of thing.

I note BTW that similar complaints could be lodged against the
log_directory setting.  We've not worried about that one too much.

Maybe we're overreacting to this issue for stats_temp_directory,
and tightening up the deletion code is a sufficient fix.
        regards, tom lane



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

Предыдущее
От: Karol Trzcionka
Дата:
Сообщение: Re: GSOC13 proposal - extend RETURNING syntax
Следующее
От: Andres Freund
Дата:
Сообщение: Re: danger of stats_temp_directory = /dev/shm