[go: up one dir, main page]

Documentation example not working

Hi,

Running the following example inside the following docker image version: registry.gitlab.com/dalibo/postgresql_anonymize

`INSERT INTO customer VALUES (911,'Chuck Norris','1940-03-10','Texas Rangers', '75001',12), (312,'David Hasselhoff','1952-07-17','Baywatch', '90001',423) ;

SELECT * FROM customer;

CREATE EXTENSION IF NOT EXISTS anon CASCADE; SELECT anon.init();

COMMENT ON COLUMN customer.full_name IS 'MASKED WITH FUNCTION anon.fake_first_name() || '' '' || anon.fake_last_name()';

COMMENT ON COLUMN customer.employer IS 'MASKED WITH FUNCTION anon.fake_company()';

COMMENT ON COLUMN customer.zipcode IS 'MASKED WITH FUNCTION anon.random_zip()';

SELECT anon.anonymize_database();

SELECT * FROM customer;`

The first and last SELECT * FROM customer statements return the same value.

Can you please advise?