From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Christian Ullrich <chris(at)chrullrich(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: PostgreSQL in Windows console and Ctrl-C |
Date: | 2014-04-11 05:35:44 |
Message-ID: | CAA4eK1Ji-U79HN_bRRXAK_BseVNvWh_Kz2ZSMxUmi2EmRvRirw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Apr 11, 2014 at 3:14 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> Can someone with Windows expertise comment on whether this should be
> applied?
I don't think this is a complete fix, for example what about platform where
_CreateRestrictedToken() is not supported. For Example, the current
proposed fix will not work for below case:
if (_CreateRestrictedToken == NULL)
{
/*
* NT4 doesn't have CreateRestrictedToken, so just call ordinary
* CreateProcess
*/
write_stderr(_("%s: WARNING: cannot create restricted tokens on this
platform\n"), progname);
if (Advapi32Handle != NULL)
FreeLibrary(Advapi32Handle);
return CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si,
processInfo);
}
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Rajeev rastogi | 2014-04-11 06:32:42 | Re: Autonomous Transaction (WIP) |
Previous Message | Kyotaro HORIGUCHI | 2014-04-11 05:31:32 | Re: Get more from indices. |