Mask or replace personally identifiable information (PII) or sensitive data
Find a file
Petr Khartskhaev ecc96d19a7 Update to 2.5.1
Resolves: 2415505
2026-01-05 14:06:10 +01: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 Added bzip2 to packages 2025-09-16 13:29:41 +02:00
tests/installcheck Updated to 2.4.1 and fixed README and the vendored tarball script 2025-09-19 12:49:02 +02:00
.gitignore Updated to 2.4.1 and fixed README and the vendored tarball script 2025-09-19 12:49:02 +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 Update to 2.5.1 2026-01-05 14:06:10 +01:00
README.md Update to 2.5.1 2026-01-05 14:06:10 +01:00
remove-disallowed-licenses.patch Initial import (fedora#2391300). 2025-09-11 14:39:05 +02:00
sources Update to 2.5.1 2026-01-05 14:06:10 +01: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