Specifications
Pack
A pgxman pack is a YAML configuration file used to declare a collection of PostgreSQL extensions for installation via pgxman.
It serves as an input file for the command pgxman pack install -f /PATH_TO/pgxman.yaml
, defining the required extensions, their versions, and the targeting PostgreSQL versions.
Example
Fields
apiVersion
- Description: Defines the API version to ensure compatibility with pgxman.
- Type: String
- Required: Yes
- Supported Values: As of now, only
v1
is supported.
extensions
- Description: Lists the extensions to be installed.
- Type: List of objects
- Required: No
- Object Fields:
name
:- Description: Specifies the name of the extension. Either the
name
or thepath
field must be present. - Type: String
- Required: No
- Description: Specifies the name of the extension. Either the
version
:- Description: Specifies the version of the extension. This field is mandatory if the
name
field is provided. - Type: String
- Required: Yes if
name
is present
- Description: Specifies the version of the extension. This field is mandatory if the
path
:- Description: Specifies the local path to the extension package. Either the
name
or thepath
field must be present. - Type: String
- Required: No
- Description: Specifies the local path to the extension package. Either the
options
:- Description: Specifies the options to be passed to corresponding package manager when installing the extension.
- Type: List of strings
- Required: No
overwrite
:- Description: Overwrite the existing extension if it is installed outside of pgxman.
- Type: Boolean
- Required: No
- Default Value: false
postgres
- Description: Specifies the PostgreSQL configuration that the extensions are targeting.
- Type: Object
- Required: Yes
- Object Fields:
version
:- Description: Specifies the PostgreSQL version. This field is mandatory.
- Type: String
- Required: Yes
- Supported Values:
"13"
,"14"
,"15"
,"16"
username
- Description: Specifies the database username to connect to a PostgreSQL instance. This field is optional.
- Type: String
- Required: No
password
- Description: Specifies the database password to connect to a PostgreSQL instance. This field is optional.
- Type: String
- Required: No
dbname
- Description: Specifies the database name to connect to a PostgreSQL instance. This field is optional.
- Type: String
- Required: No
port
- Description: Specifies the database port to connect to a PostgreSQL instance. This field is optional.
- Type: String
- Required: No