Re: Regression tests failures on Windows Server 2019 - on master at commit # d816f366b

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Regression tests failures on Windows Server 2019 - on master at commit # d816f366b
Дата
Msg-id 20220304224412.wunxfyfwp5il3qs7@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Regression tests failures on Windows Server 2019 - on master at commit # d816f366b  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2022-03-04 14:04:44 -0800, Andres Freund wrote:
> Trying to make it use the current user now - I don't know what
> permissions services are needed to run a service as a user or such.

My first attempt of using %USERNAME% failed:

[22:10:20.862] c:\cirrus>call tmp_install\bin\pg_ctl.exe register -D tmp_check/db "-UContainerAdministrator"
[22:10:20.889] pg_ctl: could not register service "PostgreSQL": error code 1057

seems to require a domain for some reason:
[22:33:54.599] c:\cirrus>call tmp_install\bin\pg_ctl.exe register -Dtmp_check/db -U "User
Manager\ContainerAdministrator"

but that then doesn't start:
[22:33:54.660] c:\cirrus>call net start PostgreSQL
[22:33:55.887] System error 1068 has occurred.

So it indeed seems hard to start a service as the current user. At least with
my limited windows knowledge.



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: role self-revocation
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Proposal: Support custom authentication methods using hooks,Re: Proposal: Support custom authentication methods using hooks