We want to change the data directory of PostgreSQL 10 from disk C to D and tried a few methods found on the internet (e.g., How to Migrate your PostgreSQL Data Directory in Windows) but failed. Can someone give some instructions? Our server is Windows Server 2016 (14393.4046) and PostgreSQL 10.5. Survey Solutions is 20.10.3.29613.
you wrote “We … tried a few methods found on the internet… but failed”.
Could you please explain what specifically was the problem after following the instructions? (at which step? what error message?)
Hi Sergiy! Thank you for your reply! The problem is simply nothing changes. When we restart the service, the original data folder (on C:) continued being modified and the new folder (on D:) did not change.
Hi Sergiy! Thank you for the reference! I just came back from a field trip and tried these methods. Neither worked. Can I uninstall PostgreSQL 10.5-1 Server (current version) and reinstall it or install another version of PostgreSQL (say, 13) then import the old data from the new location? Thank you!