Mask or replace personally identifiable information (PII) or sensitive data
Find a file
2025-09-29 13:14:43 +02:00
.fmf Added a tmt test to run upstream's installcheck and specified instructions for manual testing in README 2025-09-16 10:36:37 +02:00
plans Alter tests for epel9 2025-09-22 15:34:14 +02:00
tests/installcheck Merge branch 'rawhide' into epel9 2025-09-29 13:14:43 +02:00
.gitignore Merge branch 'rawhide' into epel9 2025-09-29 13:14:43 +02:00
anonymizer-cargo.patch Updated to 2.4.1 and fixed README and the vendored tarball script 2025-09-19 12:49:02 +02:00
create-vendored-tarball.sh Updated to 2.4.1 and fixed README and the vendored tarball script 2025-09-19 12:49:02 +02:00
postgresql16-anonymizer.spec Merge branch 'rawhide' into epel9 2025-09-29 13:14:43 +02:00
README.md Alter tests for epel9 2025-09-22 15:34:14 +02:00
remove-disallowed-licenses.patch Initial import (fedora#2391300). 2025-09-11 14:39:05 +02:00
sources Merge branch 'rawhide' into epel9 2025-09-29 13:14:43 +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
    
  2. Install and initialize pgrx:

    $ cargo install cargo-pgrx --version 0.14.3 --locked
    $ cargo pgrx init --pg16 /usr/bin/pg_config
    
  3. 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
    
  4. Run the tests

    $ make installcheck PG_CONFIG=/usr/bin/pg_config PGVER=pg16