Steps:
When you run the Enterprise System Manager (ESM) installer and select PostgreSQL as the database, it installs the PostgreSQL files at the ESM installation location, except for the data folder that actually contains the database.
<br>
By default, the database is installed in c:/Program Files (x86)/postgresql/9.2/data, and the ESM installation directory is C:/exacqVisionESM/PostgreSQL/9.2/, although it’s possible to select a different location during installation.
<br>
To move the data folder to the ESM installation location, complete the following steps:
- Stop all ESM services: ESMImporter, ESMSendemail, ESMDatarolloff, and ESMWebservice.
- Follow the instructions in the following article provided by PostgreSQL: https://wiki.postgresql.org/wiki/Change_the_default_PGDATA_directory_on_Windows
- Restart the ESM services that you stopped in step 1.
<br>
ESM-Moving-the-PostgreSQL-database-location.pdf