15 lines
655 B
Bash
Executable file
15 lines
655 B
Bash
Executable file
#!/bin/sh -eux
|
|
|
|
version=2.4.1
|
|
|
|
cd
|
|
cargo install cargo-pgrx --version 0.16.0 --locked
|
|
cargo pgrx init --pg16 /usr/bin/pg_config
|
|
|
|
wget https://gitlab.com/dalibo/postgresql_anonymizer/-/archive/${version}/postgresql_anonymizer-${version}.tar.bz2
|
|
tar -xvf postgresql_anonymizer-${version}.tar.bz2
|
|
cd postgresql_anonymizer-${version}
|
|
sed -i "s/^CONNECTION 'host=localhost/CONNECTION 'host=localhost port=28816/" tests/sql/test_replica_masking.sql
|
|
sed -i "s/^CONNECTION 'host=localhost/CONNECTION 'host=localhost port=28816/" tests/expected/test_replica_masking.out
|
|
|
|
make installcheck PG_CONFIG=/usr/bin/pg_config PGVER=pg16 || (cat regression.diffs && exit 1)
|