[go: up one dir, main page]

anon.sh removes the sequence values

I changed my anonymizer script to append the sequences from the non-anonymized dump like so:

cat dump.sql mask.sql | docker run --rm -i registry.gitlab.com/dalibo/postgresql_anonymizer /anon.sh > anon-dump.sql
cat dump.sql | grep setval >> anon-dump.sql