Mask or replace personally identifiable information (PII) or sensitive data
Find a file
2025-09-22 13:46:26 +02:00
.fmf Added a tmt test to run upstream's installcheck and specified instructions for manual testing in README 2025-09-22 13:46:26 +02:00
plans Added a tmt test to run upstream's installcheck and specified instructions for manual testing in README 2025-09-22 13:46:26 +02:00
tests/installcheck Added a tmt test to run upstream's installcheck and specified instructions for manual testing in README 2025-09-22 13:46:26 +02:00
.gitignore Adding package to EPEL 9 as required by customer 2025-09-11 16:31:32 +02:00
anonymizer-cargo.patch Initial import (fedora#2391300). 2025-09-11 14:39:05 +02:00
create-vendored-tarball.sh Initial import (fedora#2391300). 2025-09-11 14:39:05 +02:00
postgresql16-anonymizer.spec Adding package to EPEL 9 as required by customer 2025-09-11 16:31:32 +02:00
README.md Added a tmt test to run upstream's installcheck and specified instructions for manual testing in README 2025-09-22 13:46:26 +02:00
remove-disallowed-licenses.patch Initial import (fedora#2391300). 2025-09-11 14:39:05 +02:00
sources Adding package to EPEL 9 as required by customer 2025-09-11 16:31:32 +02:00

postgresql16-anonymizer

The postgresql16-anonymizer package

Testing

There are many integration tests provided by upstream that cannot be run during the build due to postgres's restrictions. To run those tests manually, follow these steps:

  1. Install additional dependencies for building rust and built-in postgres extensions:

# dnf --setopt=install_weak_deps=False install rustfmt wget diffutils postgresql16-server-devel postgresql16-contrib postgresql16-anonymizer

  1. Install and initialize pgrx:
$ cargo install cargo-pgrx --version 0.14.3 --locked
$ cargo pgrx init --pg16 /usr/bin/pg_config
  1. Download and extract the source tarball and patch test files (replace {version} with the current version of the software):
$ 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
  1. Run the tests
$ make installcheck PG_CONFIG=/usr/bin/pg_config PGVER=pg16