This section describes how to prepare your database on Postgres for Omni-HealthData.
While it is the prerogative of the database administrator to define the names of the associated databases, it is recommended that the following databases and associated schemas be created and ready for use:
The creation of the database is generally the responsibility of a database administrator. The user ID that is used to create and update the database must be available during the installation.
Omni-HealthData requires the Postgres pgcrypto functions to be available.
Pgcrypto is included in most Postgres 8.4 and higher distributions, and is enabled for use by the following command:
CREATE EXTENSION pgcrypto;
select * from pg_available_extensionsFor earlier versions of Postgres, or its derivatives, the appropriate pgcrypto package needs to be installed. Where CREATE EXTENSION is not supported, the function definitions will need to be installed manually.
psql -d databasename -f $PGHOME/share/postgresql/contrib/pgcrypto.sql