Moving PostgreSQL data directory on Windows

From: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>
To: Pg - General <pgsql-general(at)postgresql(dot)org>
Subject: Moving PostgreSQL data directory on Windows
Date: 2006-01-13 15:24:18
Message-ID: 34608c0c0601130724m56e612fdw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

Thanks,
Otto

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-01-13 15:26:22 Re: FATAL: terminating connection due to administrator command
Previous Message Tom Lane 2006-01-13 15:18:38 Re: Plans for 8.2?