From: | "Chad Wagner" <chad(dot)wagner(at)gmail(dot)com> |
---|---|
To: | howard(at)yankeescientific(dot)com |
Cc: | aarni(at)kymi(dot)com, pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Moving an existing database from an old version? |
Date: | 2007-01-13 14:25:06 |
Message-ID: | 81961ff50701130625w2048b014w840278025edcb42f@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On 1/13/07, Howard Eglowstein <howard(at)yankeescientific(dot)com> wrote:
>
> Thank you all for the suggestions!! I wouldn't have guessed that you
> _can't_ just move the data, but it makes sense that you can't. I'm still
> having trouble figuring out where the data is on the existing machine.
> 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.
That's because pg_dump is connecting through the socket, not reading the
data directory directly.
Last question for now (before I fire up the machine and try again): How
> does postgresql know where the data lives?
>
When you start the database with pg_ctl (or if you run postmaster/postgres
directly) then there is a -D switch which tells all of them where the data
directory lives. Take a look at your startup scripts and it should lead you
to the location. If you are using Linux, the standard location is
/var/lib/pgsql/data. Otherwise you should use "find" or "locate" to hunt
down either postgresql.conf or PG_VERSION, both should live in the data
directory.
From | Date | Subject | |
---|---|---|---|
Next Message | brian stapel | 2007-01-16 20:02:10 | Age Fucntion |
Previous Message | Aarni Ruuhimäki | 2007-01-13 14:04:56 | Re: Moving an existing database from an old version? |