Unix Technical Forum

Installation docs wrong?

This is a discussion on Installation docs wrong? within the pgsql Hackers forums, part of the PostgreSQL category; --> On this page: http://www.postgresql.org/docs/8.0/i...g-cluster.html It has this sequence: root# mkdir /usr/local/pgsql/data root# chown postgres /usr/local/pgsql/data root# su postgres postgres$ ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:12 AM
Christopher Kings-Lynne
 
Posts: n/a
Default Installation docs wrong?

On this page:

http://www.postgresql.org/docs/8.0/i...g-cluster.html

It has this sequence:

root# mkdir /usr/local/pgsql/data
root# chown postgres /usr/local/pgsql/data
root# su postgres
postgres$ initdb -D /usr/local/pgsql/data

However, initdb will fail in this case, since the /usr/local/pgsql dir
is NOT owned by postgres. (This came up on IRC helping someone)

Should it in fact be:

root# chown -R postgres /usr/local/pgsql


Chris

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 04:12 AM
Christopher Kings-Lynne
 
Posts: n/a
Default Re: Installation docs wrong?

Sorry, on further investigation this seems to work for everyone except
that guy - weird.

Chris

Christopher Kings-Lynne wrote:
> On this page:
>
> http://www.postgresql.org/docs/8.0/i...g-cluster.html
>
> It has this sequence:
>
> root# mkdir /usr/local/pgsql/data
> root# chown postgres /usr/local/pgsql/data
> root# su postgres
> postgres$ initdb -D /usr/local/pgsql/data
>
> However, initdb will fail in this case, since the /usr/local/pgsql dir
> is NOT owned by postgres. (This came up on IRC helping someone)
>
> Should it in fact be:
>
> root# chown -R postgres /usr/local/pgsql
>
>
> Chris
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 04:12 AM
Michael Fuhr
 
Posts: n/a
Default Re: Installation docs wrong?

On Fri, Mar 25, 2005 at 12:30:46PM +0800, Christopher Kings-Lynne wrote:

> root# mkdir /usr/local/pgsql/data
> root# chown postgres /usr/local/pgsql/data
> root# su postgres
> postgres$ initdb -D /usr/local/pgsql/data
>
> However, initdb will fail in this case, since the /usr/local/pgsql dir
> is NOT owned by postgres. (This came up on IRC helping someone)


This should work. What's the exact error? Have you check the
permissions on all parent directories? What's the output of the
following command?

ls -ld / /usr /usr/local /usr/local/pgsql /usr/local/pgsql/data

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 04:12 AM
Tom Lane
 
Posts: n/a
Default Re: Installation docs wrong?

Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> On this page:
> http://www.postgresql.org/docs/8.0/i...g-cluster.html


> It has this sequence:


> root# mkdir /usr/local/pgsql/data
> root# chown postgres /usr/local/pgsql/data
> root# su postgres
> postgres$ initdb -D /usr/local/pgsql/data


> However, initdb will fail in this case, since the /usr/local/pgsql dir
> is NOT owned by postgres. (This came up on IRC helping someone)


That doesn't matter per se. But I wonder if /usr/local/pgsql was set up
as not world readable.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com