Re: Backend working directories and absolute file paths

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Backend working directories and absolute file paths
Дата
Msg-id 87ekajxzv1.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Backend working directories and absolute file paths  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Backend working directories and absolute file paths  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Greg Stark <gsstark@mit.edu> writes:
> > However it might be nice to have dumps go to a configurable place. 
> 
> You'd have to talk to your kernel provider about that one; we don't have
> any direct control over where or even whether core dumps occur.

Well on most platforms setting the cwd would suffice.

This would also potentially allow you to control profiling output (though I
suspect that gets created at fork time, which would be too late) and other
such things.


For that matter, would depending on the cwd interact well with trusted Pl
languages that can change the cwd? Would they have to guarantee to set it back
when they're done?

> This adds overhead, rather than removing it as I was hoping to do.

That's true. Hm. If the id were short it could go on every page.

-- 
greg



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: REL7_4_STABLE: Check failure
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Dbsize backend integration