hi. around src/bin/pg_dump/pg_dump.c line 1117 right after "ropt->no_comments = dopt.no_comments;" we also need add ropt->no_policies = dopt.no_policies; ?
overall looks good to me. The tests seem wrong per https://cirrus-ci.com/github/postgresql-cfbot/postgresql/cf%2F5499 I have no idea how to improve the test.