attiati
12-11-2009, 12:46 PM
I wanted to move my HM database (20 GB) to another partition.
The postgres backup function doesn't work. And I dont will export-import...
Somebody told me, I should stop the postgres service, and I should edit the "data" path in "postmaster.opts" file, and the "# data_directory =" line in "postgresql.conf". And I should move my data directory to this new place. I did it, but always, when I restart the postgres service, it rewrites always to the original, old path, and it search the data directory at the original place. Why? In which file, or where should I edit more?
The postgres backup function doesn't work. And I dont will export-import...
Somebody told me, I should stop the postgres service, and I should edit the "data" path in "postmaster.opts" file, and the "# data_directory =" line in "postgresql.conf". And I should move my data directory to this new place. I did it, but always, when I restart the postgres service, it rewrites always to the original, old path, and it search the data directory at the original place. Why? In which file, or where should I edit more?