Version v3.7.0 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
PostgreSQL
PostgreSQL is the most advanced & popular open source database in the world.
Pigsty supports PostgreSQL 13 ~ 18, and provides 437 extensions alone with it.
Get Started
install Pigsty’s with the pgsql config template.
Most of the config template is use the PostgreSQL kernel by default, such as:
meta: DEFAULT, postgres with core extensions (vector, postgis, timescale)rich: postgres with all extensions installedslim: postgres only without monitor infrafull: the 4-node sandbox for HA demonstrationpgsql: the minimal postgres kernel config example (THIS CONFIG)
Configure
Nothing special needs to be tuned for vanilla PostgreSQL kernel:
To use a different PostgreSQL major version, you can configure with -v parameter:
If PostgreSQL cluster is already installed, you’ll need to uninstall it before installing the new version
PostgreSQL beta
To use PostgreSQL beta version (19 not released), you’ll also need to add the beta repo to your node_repo_modules
(or repo_modules if you are building a local repo)
The configure will do that for you if you are use the -v 19 argument:
Beware Pigsty is not build extensions for PostgreSQL 19 yet, so only those existing extensions in the PGDG repo are currently available. We will start building them after the PostgreSQL 19 is released.
Multi-Node
To setup a multi-node PostgreSQL cluster, you can check the PGSQL: Configure for details:
This is the example 3-node pg-test cluster in the full config template: