Re: 9.2RC1 wraps this Thursday ...

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: 9.2RC1 wraps this Thursday ...
Дата
Msg-id 010101cd7fb1$ddf23770$99d6a650$@kapila@huawei.com
обсуждение исходный текст
Ответ на 9.2RC1 wraps this Thursday ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 9.2RC1 wraps this Thursday ...
Список pgsql-hackers
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tom Lane
> * pg_ctl crashes on Win32 when neither PGDATA nor -D specified

> I'm not sure that this qualifies as a release blocker either --- isn't
> it a plain-vanilla pre-existing bug?  And what does the proposed patch
> have to do with the stated problem?  (Even if you define the problem
> as "make sure we're restricted" rather than the stated symptom, the
> patch looks rather fragile and Rube Goldbergian ... 


This is to handle one part of the overall problem. Below is text from
previous mail discussion due to which new handling is introduced:
"
> I note that "postgres -C data_directory" will refuse to run on the
> command line because I've got admin privileges in Windows, and that
> pg_ctl normally starts postgres.exe using CreateRestrictedProcess.
> But it does not do so for the popen call in adjust_data_dir.

-- By you
if that actually is a third bug, as seems likely, somebody with access
to a windows environment will need to deal with it."


I have tried to define the handling similar to InitDB where for
administrative users,
it re-forks itself in a restricted mode as it has to start postgres.

> isn't there a way to actually test if we're in a restricted process?

Do you mean to say that it should check if pg_ctl runs as an administrative
user
then do the re-fork in restricted mode. 
If something else, then could you please give more detail about what is
exact expectation to handle the above issue.


With Regards,
Amit Kapila.







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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: huge tlb support
Следующее
От: Andres Freund
Дата:
Сообщение: Re: huge tlb support