Re: Supporting huge pages on Windows - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject Re: Supporting huge pages on Windows
Date
Msg-id 0A3221C70F24FB45833433255569204D1F6C0A01@G01JPEXMBYT05
Whole thread Raw
In response to Re: Supporting huge pages on Windows  (Craig Ringer <craig.ringer@2ndquadrant.com>)
List pgsql-hackers
From: Craig Ringer [mailto:craig.ringer@2ndquadrant.com]
> On 5 April 2017 at 10:37, Tsunakawa, Takayuki
> <tsunakawa.takay@jp.fujitsu.com> wrote:
> 
> OTOH, I tried again to leave the DISABLE_MAX_PRIVILEGE as is and add Lock
> Pages in Memory, using the attached pg_ctl.c.  Please see
> EnableLockPagesPrivilege() and its call site.  But pg_ctl -w start fails
> emitting the following message:
> 
> That won't work. You'd have to pass 0 to the flags of CreateRestrictedToken
> and instead supply a PrivilegesToDelete array.
> You'd probably GetTokenInformation and AND with a mask of ones you wanted
> to retain.

Uh, that's inconvenient.  We can't determine what privileges to delete, and we must be aware of new privileges added in
thefuture version of Windows.
 

Then, I have to say the last patch (v12) is the final answer.

Regards
Takayuki Tsunakawa


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Implementation of SASLprep for SCRAM-SHA-256
Next
From: David Rowley
Date:
Subject: Re: BRIN cost estimate