Because database creation can be slow for some RDBMS, Micro Focus recommends that you create the region database before you start the PAC:
dbfhadmin -script -type:region -provider:pg -name:MYPAC -file:create_region_db.sql
This creates a file containing the PostgreSQL statements to create the region database.
dbfhadmin -createdb -provider:pg -type:region -name:MYPAC -file:create_region_db.sql -user:postgres
When using the dbfhadmin -createdb -provider:pg -user:postgres ... command, it is assumed that an entry for the postgress user has been created in a password file, located at %APPDATA%\postgresql\pgpass.conf on Windows, or .pgpass in the user's home directory on Linux. On Linux, PostgreSQL also supports the use of the PGPASSFILE environment variable to specify the location of the password file. See Configure Region and Cross-Region Databases in PostgreSQL for more information.
The password file takes the form:
#hostname:port:database:username:password localhost:5432:postgres:mfdbfh:MfdbfhAdmin1!