Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

A patch to pg_regress for Windows port



On Windows, if logged in as an Administrator, 'make check' fails with our standard error, saying:

<quote>
Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises.  See the documentation for
more information on how to properly start the server.
</quote>

But, for some time now, a Windows' Administrator *can* run a postgres without having to create a normal user; he just has to use pg_ctl to do so. Thanks to code written by Magnus, pg_ctl gives up it's administrative privilges before starting the postmaster, and hence the postmaster runs without critical privileges.

So I thought that 'make check' could also make use of that functionality, and hence this patch.

Is this new pg_ctl behavior mentioned anywhere in the docs?

Best regards,

--
gurjeet[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | yahoo }.com

Attachment: pg_regress.c.patch.gz
Description: GNU Zip compressed data



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group