[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where are the data and log folders of postgresql 8.3 on debian sid?

On Sat, Dec 06, 2008 at 10:03:04AM +0800, ????????? wrote:
> I have installed postgresql 8.3 from debian package, and i'm reading
> the official document from postgresql, the document says after
> installing the database, it needs to create data folder and specify
> log file to initiate the database, like this:
> ---------------
> mkdir /usr/local/pgsql/data
> chown postgres /usr/local/pgsql/data
> su - postgres
> /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
> /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
> -----------------
> but i cannot find the folder in my debian installation, i think they
> are at some location else, where is it? thanks

If you look in /usr/share/doc/PACKAGE there should be a readme.debian or
similar that describes the particulars of the package.  There is usually
also a readme from upstream, changelogs for debian and upstream, etc.  In
many cases the upstream projects are quite generalized, while the debian
package tends to make some decisions with the aim of coming up in or very
close to a working state.  I would think it unusual to have to go digging
around in the innards of the system to get it to work, but if there is 
such a need I'd expect it to be documented.

The above paths I guess are from the upstream sources and not debian, as
debian would not install or probably even refer to anything in /usr/local/
or /var/local/.  As to where to find the equivalent files/folders, I have
no idea, but if you follow the debian docs for the package there should 
be sufficient information there to do what you need.  Good luck!

Ken Irving

Reply to: