src/postgres/third-party-extensions/documentdb/packaging/README.md
Run ./packaging/build_packages.sh -h and follow the instructions.
E.g. to build for Debian 12 and PostgreSQL 16, run:
./packaging/build_packages.sh --os deb12 --pg 16
Supported DEB/Ubuntu distributions:
Supported PG versions: 15, 16, 17
For Red Hat-based distributions, you can build RPM packages:
./packaging/build_packages.sh --os rhel8 --pg 17
Supported RPM distributions:
Supported PG versions: 15, 16, 17
[Optional] Before building RPM packages, you can validate your environment:
./packaging/validate_rpm_build.sh
This script checks:
# Build for RHEL 9 with PostgreSQL 16
./packaging/build_packages.sh --os rhel9 --pg 16
# Build with testing enabled
./packaging/build_packages.sh --os rhel8 --pg 17 --test-clean-install
Packages can be found at the packages directory by default, but it can be configured with the --output-dir option.
Note: The packages do not include pg_documentdb_distributed in the internal directory.
To build gateway packages, use the build_gateway_packages.sh script. This script supports the same OS and PostgreSQL version options as the main package builder.
For example, to build a gateway package for Debian 12 and PostgreSQL 16, run:
./packaging/build_gateway_packages.sh --os deb12 --pg 16
Supported DEB/Ubuntu distributions:
Supported PG versions: 15, 16, 17, 18
The resulting gateway packages will be placed in the output directory (default: packaging). You can change the output location with the --output-dir option.