diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 70899b3..a615dda 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -20,7 +20,7 @@ To create a pgvectorscale developer environment, you need the following on your * [Cargo-pgrx][cargo-pgrx]: ```shell - cargo install --locked cargo-pgrx + cargo install --locked cargo-pgrx --version $(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "pgrx") | .version') ``` You must reinstall cargo-pgrx whenever you update Rust, cargo-pgrx must be built with the same compiler as pgvectorscale. diff --git a/README.md b/README.md index dcfa310..1a98014 100644 --- a/README.md +++ b/README.md @@ -74,8 +74,8 @@ You can install pgvectorscale from source and install it in an existing PostgreS # install prerequisites ## rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - ## pgrx - cargo install --locked cargo-pgrx + ## cargo-pgrx with the same version as pgrx + cargo install --locked cargo-pgrx --version $(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "pgrx") | .version') cargo pgrx init --pg17 pg_config #download, build and install pgvectorscale