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

Re: Installing Postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Campbell, Lance" <lance(at)uiuc(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Installing Postgres
Date: 2007-08-23 18:41:52
Message-ID: 10725.1187894512@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
"Campbell, Lance" <lance(at)uiuc(dot)edu> writes:
> The solution, based on emails I have received, is to install PostgreSQL
> into a subdirectory called "data".  I then move the contents of "data"
> back a directory.  This way I am able to have the files in the directory
> I want them in.  Even though the directory I wanted them in contains a
> subdirectory.  This is how you get around the issue.

NO, NO, NO, NO, NO.

You appear to be impervious to several people telling you this is a
bad idea, but I will try one more time to explain why.  The reason you
see "lost+found" in that directory is that it is a volume mount point.
Volume mount point directories should *always* be owned by root, for
both reliability and security reasons.  The setup you are proposing
would have to have the mount point directory be postgres-owned.
You will live to regret that if you insist on doing it that way
(in fact, I'm astonished your sysadmin agreed to it in the first
place ... he must be pretty new at his job).

Stick with the extra level of directory.

> It appears that
> the PostgreSQL data directory contents can be moved.

Yeah, they can.  The argument here is about exactly where you are
proposing to move them to.  If it were an ordinary directory it'd be
fine.

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Bruce MomjianDate: 2007-08-23 19:02:18
Subject: Re: tar, but not gnu tar
Previous:From: Campbell, LanceDate: 2007-08-23 17:48:17
Subject: Re: Installing Postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group