Creating a Configuration
Create an OCI Database with PostgreSQL database system configuration to manage variables and extensions.
OCI Database with PostgreSQL provides optimized default configurations out of the box targeting a specific shape. Only advanced users might need to change and manage them. For more information, see PostgreSQL reference manual.
When creating a configuration, select either a fixed configuration or a flexible configuration.
A fixed configuration is associated with specific hardware details, and can only be applied to database systems with hardware configurations where OCPU and memory exactly match those details.
A flexible configuration can be applied to database systems with differing hardware configurations. If a database system uses a flexible configuration, you can update its hardware configuration without the need to change configurations. Flexible configurations let you use integer expressions for some variable values. For more information, see Flexible Configurations and Integer Variables.
Use the
oci psql configuration create
command and required parameters to create a configuration:oci psql configuration create --compartment-id <compartment_OCID> [OPTIONS]
A list of admin-enabled extensions can be specified using the
oci.admin_enabled_extensions
configuration parameter as part ofdb-configuration-overrides
. For example:oci psql configuration create --compartment-id <compartment_OCID> --db-version <db_version> --display-name <display_name> --db-configuration-overrides <file://db-configuration-overrides.json> [OPTIONS]
For more information, see Supported PostgreSQL Extensions for OCI Database with PostgreSQL.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateConfiguration operation to create a configuration.
Use
dbConfigurationOverrides
along with aconfigKey
ofoci.admin_enabled_extensions='<extension1,extension2>'
and the required value to enable extensions for the configuration. For more information, see Supported PostgreSQL Extensions for OCI Database with PostgreSQL.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.