Re: [PATCHES] Run-as-admin warning for win32 - Mailing list pgsql-patches

From Tom Lane
Subject Re: [PATCHES] Run-as-admin warning for win32
Date
Msg-id 29414.1083644268@sss.pgh.pa.us
Whole thread Raw
In response to Run-as-admin warning for win32  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: [PATCHES] Run-as-admin warning for win32
List pgsql-patches
"Magnus Hagander" <mha@sollentuna.net> writes:
> Previously, postgresql has exited out on Unix when running as root -
> this is a similar check, with the following differences:

> * We do a ereport(WARNING) instead of exitting out.

Why?  If we refuse to run as root on Unix, I do not see an argument for
being more forgiving on Windows.

> The reason for this
> is that we can expect there are win32 admins that will want to run the
> server with a high privilege account.

Translated: "we can expect a higher proportion of Windows admins who
will refuse to be force-fed a clue"?  Not a lot of sympathy here.

> * The Unix check is directly in main.c. We cannot do this on win32,
> because at this stage we can only printf and exit. Win32 needs ereport.

We could move the Unix check later without any problem.  I agree with
keeping both checks in the same place.

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

pgsql-patches by date:

Previous
From: Shachar Shemesh
Date:
Subject: Re: Run-as-admin warning for win32
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Run-as-admin warning for win32