The Private Cloud operations guide recommend using the restore-postgres.sh script to restore the postgres from a backup file post events like reinstallation.
It is likely that the script may fail with the following error during execution :
dropdb: database removal failed: ERROR: database "apigee" is being accessed by other users
This may not be a fatal error and may result in the data being added onto the existing db as opposed to dropping it and creating afresh - And that is the problem.
How can this be resolved ?