Re: How to change the pgsql source code and build it??

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Shreesha <shreesha1988(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to change the pgsql source code and build it??
Date: 2014-06-16 04:49:26
Message-ID: 539E7756.5000607@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2014-06-16 04:58:45 Re: Proposal for CSN based snapshots
Previous Message Craig Ringer 2014-06-16 04:44:47 Re: Built-in support for a memory consumption ulimit?