Re: Moving an existing database from an old version? - Mailing list pgsql-novice

From Aarni Ruuhimäki
Subject Re: Moving an existing database from an old version?
Date
Msg-id 200701131604.56527.aarni@kymi.com
Whole thread Raw
In response to Re: Moving an existing database from an old version?  (Howard Eglowstein <howard@yankeescientific.com>)
List pgsql-novice
On Saturday 13 January 2007 14:11, Howard Eglowstein wrote:
> I've looked in /usr/local and /usr/share for places it might be and
> there doesn't seem to be any. Yet, pg_dump clearly knows how to find it.
>
> Last question for now (before I fire up the machine and try again): How
> does postgresql know where the data lives?

Not sure about Debian but on an Ubuntu machine locate (pgsql, .bki,
pg_hba.conf, postmaster) gives

/var/lib/postgresql/8.0/main/base/
/usr/lib/postgresql/8.0/lib/
/etc/postgresql/8.0/main/pg_hba.conf
/usr/share/postgresql/8.0/postgres.bki
/usr/lib/postgresql/8.0/bin/postmaster

You tell Postgres where the data dir is with initdb command. -D is the path to
the datadir.

--

Have fun,

Aarni

pgsql-novice by date:

Previous
From: Howard Eglowstein
Date:
Subject: Re: Moving an existing database from an old version?
Next
From: "Chad Wagner"
Date:
Subject: Re: Moving an existing database from an old version?