Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 1.59 KB

File metadata and controls

75 lines (51 loc) · 1.59 KB

Installation

Warning

To use the subscribe and unsubscribe functions, you must add the following to postgresql.conf:

shared_preload_libraries = 'pgnats.so'

Prerequisite

  1. Install rust >= 1.82.0
  2. Install prerequisites for pgrx

Linux

ALT Linux

# 1. Install cargo-pgrx
cargo install cargo-pgrx --git https://github.com/luxms/pgrx --locked

# 2. Initialize pgrx
cargo pgrx init

# 3. Clone this repo

Warning

If you want to specify the path to the installed pg_config, use the following command:

cargo pgrx init -pg<POSTGRES_VERSION> <path to pg_config> --skip-version-check

Other Linux

Postgres Official

# 1. Install cargo-pgrx
cargo install cargo-pgrx --git https://github.com/luxms/pgrx --locked

# 2. Initialize pgrx
cargo pgrx init [-pg<POSTGRES_VERSION> <path to pg_config>]

# 3. Clone this repo

PostgresPro Std. / Ent.

Warning

You need to use feature xid8 to build the extension:

cargo pgrx package -pg_config<path to pg_config> --features xid8

# 1. Install cargo-pgrx
cargo install cargo-pgrx --git https://github.com/luxms/pgrx --locked

# 2. Initialize pgrx
cargo pgrx init -pg<POSTGRES_VERSION> <path to pg_config>

# 3. Clone this repo

Windows

# 1. Install cargo-pgrx
cargo install cargo-pgrx --git https://github.com/luxms/pgrx --locked

# 2. Initialize pgrx
cargo pgrx init [-pg<POSTGRES_VERSION> <path to pg_config>]

# 3. Clone this repo