mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-04-18 21:44:00 +03:00
13 lines
384 B
Bash
Executable File
13 lines
384 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cargo pgrx install --no-default-features --features "pg$VERSION" --release
|
|
psql -c 'ALTER SYSTEM SET shared_preload_libraries = "vectors.so"'
|
|
psql -c 'ALTER SYSTEM SET search_path = "$user", public, vectors'
|
|
psql -c 'ALTER SYSTEM SET logging_collector = on'
|
|
|
|
if [ "$OS" == "ubuntu-latest" ]; then
|
|
sudo systemctl restart postgresql
|
|
pg_lsclusters
|
|
fi
|