-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database refuses to start on windows with privileged user #66
Comments
This doesn't appear to be the only official way for starting postgres, see here which in many cases does not use
Might be a good idea to investigate how |
All examples mainly seem to refer to unix, where running programs as non-root user is the normal case. However on windows (especially for software development) using accounts that are local administrators is still the standard.
The logic seems to be in |
Hmm, maybe wrapping it in runas could be used to restrict the process. Something along these lines maybe?
|
Indeed using I still think
And I'd value the possibility to use |
@dpeger Thanks for the report. From my point of view, using So as @jameshilliard said, we need to figure out how |
@tomix26 thanks for the reply. I totally agree with @jameshilliard and you. If possible |
I've finally tested it and everything worked as expected. There were no problems. Tested on Windows 10 Pro, version 20H2 and also version 21H1, with the same result. Note that I tested it as admin and also as standard user. So what system are you using? Could you provide more information to reproduce the issue? |
Similar to issue #67 I could reproduce this problem in a virtual machine based on Windows 2019 Server (10.0.17763 Build 17763) with the Administrator account. On this machine other accounts (local administrators or not) worked while on my actual machine (some OS) my AD account doesn't. |
I have the same problem on windows 7, maybe something change in Windows 10 that allows it on that version. |
#66 Replace the use of postgres command with pg_ctl
With versions
1.2.8
and above runningon Windows with a privileged user results in the this log output followed by a timeout exception:
This is caused by switching from
pg_ctl
topostgres
executable for starting up postgres in PR #39. According to the PR this was done to get a proper process tree to ensure the postgres process doesn't stay alive after Java is terminated. Which makes perfect sense.However as
pg_ctl
is the recommended/official way to start postgres I think there should at least be an option to switch topg_ctl
or make it system dependent. That is usepostgres
under unix andpg_ctl
under Windows.Version
1.2.7
is working fine for me under windows.The text was updated successfully, but these errors were encountered: