Re: Moving PostgreSQL data directory on Windows

From: Rodrigo Gonzalez <rjgonzale(at)gmail(dot)com>
To: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving PostgreSQL data directory on Windows
Date: 2006-01-14 04:53:05
Message-ID: 43C883B1.6030005@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Directory permissions for user the user running the service?

Ottó Havasvölgyi wrote:

>Magnus,
>
>It's a service, and it is 8.0.6. I have fixed the registry to this
>value: "C:\Program Files\PostgreSQL\8.0\bin\pg_ctl.exe" runservice -N
>"pgsql-8.0" -D "E:\PostgreSQL\data\"
>
>The service does not start.
>This new directory definetely exists. But now there is no Event log
>entry about the error. The log file says nothing because it is in the
>data/pg_log directory.
>
>Thanks,
>Otto
>
>
>
>2006/1/13, Magnus Hagander <mha(at)sollentuna(dot)net>:
>
>
>>>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?
>>>
>>>
>>Are you running it as a service:? If so you need to reconfigure the service. Unfortunatly,the only way to do this is using regedit. Go to
>>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\pgsql-8.1
>>
>>Open the value "ImagePath" and change the data directory.
>>
>>//Magnus
>>
>>
>>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: explain analyze is your friend
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2006-01-14 11:32:41 Re: Plans for 8.2?
Previous Message Sally Sally 2006-01-14 04:28:39 Re: Unable to connect to a dabase