"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> Attached is a two part patch for the admin functionality on win32.
> The first part is a simple bugfix to backend/port/win32/security.c. The
> function that checks if the user has admin privileges didn't check it
> the SID in the token was enabled or not.
Applied back to 8.0.
> The second part enables pg_ctl to give up admin privleges when starting
> the server.
Applied to HEAD only.
regards, tom lane