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

2014-06-18 Thread Shreesha
ed? Or what is the name of the default database name? 3) Is there any other places in the database server code where this check is applied? Upon looking at the error I got, I believe the code is searching for the database name == user name. If anyone can give some input on the code, it would be hel

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

2014-06-16 Thread Shreesha
14 at 9:49 PM, Craig Ringer wrote: > 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 &#

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

2014-06-16 Thread Shreesha
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 chan

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

2014-06-13 Thread Shreesha
Like Tom said, just setting the the configure option doesn't let the root user in. Looks like lot more changes are required. Tom, according to you, what do you think would be my best bet to allow the root user initialize and start the database server? Thanks, Shreesha. On Fri, Jun 13, 20

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

2014-06-13 Thread Shreesha
ers at all. It's a pretty safe bet > that hacking out those geteuid tests is just the tip of the iceberg of > what he's going to have to change to make it work, because it probably > deviates from typical-Unix-environment in a lot of other ways too. > So I can't get too concerned about how easy this one aspect is for him. > > regards, tom lane > -- ~Shreesha.

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

2014-06-12 Thread Shreesha
ative? On Thu, Jun 12, 2014 at 5:40 PM, Abhijit Menon-Sen wrote: > At 2014-06-12 16:08:05 -0700, shreesha1...@gmail.com wrote: > > > > I need to initialize the db as the root and start the database server. > > Why? > > -- Abhijit > -- ~Shreesha.

[HACKERS] How to change the pgsql source code and build it??

2014-06-12 Thread Shreesha
ed by the build. I wanted to know if there is any other procedure for building the postgresql procedure? Thanks Shreesha. P.S Below is the changes done in initdb.c (shown in bold letters