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

Re: Moving an existing database from an old version?

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: (view raw, whole thread or download thread mbox)
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


In response to

pgsql-novice by date

Next:From: brian stapelDate: 2007-01-16 20:02:10
Subject: Age Fucntion
Previous:From: Aarni RuuhimäkiDate: 2007-01-13 14:04:56
Subject: Re: Moving an existing database from an old version?

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