How to install microsoft/pg_durable. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
microsoft/pg_durable Installation Guide
How to install microsoft/pg_durable. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for microsoft/pg_durable. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i microsoft/pg_durableor
Install via npx
npx @hexmos/ipm i microsoft/pg_durablePrerequisites
PostgreSQL
databaseVersion: 17 or 18
Rust
programming languageVersion: nightly
cargo-pgrx
toolVersion: 0.16.1
Docker
containerizationManual Installation Methods
Manual installation instructions. How to install from GitHub source.
Debian Packages (PostgreSQL 17 & 18)
sudo apt-get update
sudo apt-get install -y postgresql-server-dev-17
sudo apt-get install -y postgresql-server-dev-18
sudo apt-get install -y wget ca-certificates
wget https://github.com/microsoft/pg_durable/releases/download/v0.5.0/pg-durable-postgresql-17_0.5.0-1_amd64.deb
sudo dpkg -i pg-durable-postgresql-17_0.5.0-1_amd64.deb
wget https://github.com/microsoft/pg_durable/releases/download/v0.5.0/pg-durable-postgresql-18_0.5.0-1_amd64.deb
sudo dpkg -i pg-durable-postgresql-18_0.5.0-1_amd64.deb
sudo sed -i '/shared_preload_libraries/s/$/ pg_durable/' /etc/postgresql/17/main/postgresql.conf
sudo sed -i '/shared_preload_libraries/s/$/ pg_durable/' /etc/postgresql/18/main/postgresql.conf
sudo systemctl restart postgresql
sudo -u postgres psql -c 'CREATE EXTENSION pg_durable;'Source Installation (with pgrx)
git clone https://github.com/microsoft/pg_durable
cd pg_durable
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
source "$HOME/.cargo/env"
cargo install --git https://github.com/pgcentralfoundation/pgrx pgrx-cli --version 0.16.1
export PATH="$HOME/.pgrx/install-ff50431b/bin:$PATH"
./scripts/pg-start.sh
~/.pgrx/17.*/pgrx-install/bin/psql -h localhost -p 28817 -d postgres
CREATE EXTENSION pg_durable;GitHub Codespace
git clone https://github.com/microsoft/pg_durable
cd pg_durable
./scripts/pg-start.sh
~/.pgrx/17.*/pgrx-install/bin/psql -h localhost -p 28817 -d postgres
CREATE EXTENSION pg_durable;Docker
git clone https://github.com/microsoft/pg_durable
cd pg_durable
./scripts/test-e2e-docker.sh --rebuild