{pg-dump-anon,postgresql.pkgs.anonymizer}: 1.3.2 -> 2.4.1 (#445784)

This commit is contained in:
Leona Maroni
2025-09-25 08:26:43 +00:00
committed by GitHub
5 changed files with 24 additions and 21 deletions

View File

@@ -39,7 +39,7 @@ let
create table player(id serial, name text, points int);
insert into player(id,name,points) values (1,'Foo', 23);
insert into player(id,name,points) values (2,'Bar',42);
security label for anon on column player.name is 'MASKED WITH FUNCTION anon.fake_last_name();';
security label for anon on column player.name is 'MASKED WITH FUNCTION anon.fake_last_name()';
security label for anon on column player.points is 'MASKED WITH VALUE NULL';
''}"
)
@@ -61,7 +61,7 @@ let
COPY public.player ...
1,Shields,
2,Salazar,
\.
\\.
in the given dump (the commas are tabs in case of pg_dump).
Extract the CSV lines and split by `sep`.