Re: How to change the pgsql source code and build it?? - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: How to change the pgsql source code and build it??
Date
Msg-id 539E7756.5000607@2ndquadrant.com
Whole thread Raw
In response to How to change the pgsql source code and build it??  (Shreesha <shreesha1988@gmail.com>)
Responses Re: How to change the pgsql source code and build it??  (Shreesha <shreesha1988@gmail.com>)
Re: How to change the pgsql source code and build it??  (Shreesha <shreesha1988@gmail.com>)
List pgsql-hackers
On 06/13/2014 07:08 AM, Shreesha wrote:
> I need to initialize the db as the root and start the database server

Assuming there's no way around doing this (it's generally not a good
idea), you can just use the simple program 'fakeroot'.

This program changes the return values from system calls via LD_PRELOAD,
so PostgreSQL thinks that the user it is running as isn't root. It's
commonly used in testing and packaging systems.

http://man.he.net/man1/fakeroot

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Built-in support for a memory consumption ulimit?
Next
From: Craig Ringer
Date:
Subject: Re: Proposal for CSN based snapshots