Re: Moving PostgreSQL data directory on Windows

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>
Cc: Pg - General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Moving PostgreSQL data directory on Windows
Date: 2006-01-13 16:22:31
Message-ID: 87irsojdx4.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com> writes:

> Hello,
>
> I would like to move the data directory to another location. I have done this:
> 1. Stop PostgreSQL
> 2. Move data directory
> 3. Create a PGDATA env. variable to the new location
> 4. Start PostgreSQL
>
> And it cannot start, because it cannot find postgresql.conf. (in Event log)
> What should I do now?
>

Dumb question, but are you sure you exported the PGDATA variable? Is
it pointing to the directory that actually contains postgresql.conf?

If you still have problems, post the exact error message that appears
in the logs.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2006-01-13 16:34:55 Re: Moving PostgreSQL data directory on Windows
Previous Message Magnus Hagander 2006-01-13 16:21:48 Re: Moving PostgreSQL data directory on Windows