On 06/06/2018 09:16 AM, Amit Kapila wrote:
> The second change the recipe makes is to disable the tablespace tests. On > Windows, when running as the Administrator, the application gives up > privilege to such an extent that the tablespace tests fail. Ohh. I was confused about why Windows was giving us fewer privileges when we had a more privileged account, but in fact *we* did that. Where does the privilege-giving-up happen?It happens during startup, see CreateRestrictedProcess in src/bin/pg_ctl/pg_ctl.c.
Yeah, what seems quite odd, though, is that when run as an unprivileged use the tablespace test runs just fine, but when run as a privileged user it fails. If that's fixable we should fix it :-)
cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
