Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: Nikolay Samokhvalov <nik(at)postgres(dot)ai>
Cc: Greg Sabino Mullane <htamfids(at)gmail(dot)com>, pgsql-hackers mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
Date: 2025-01-15 07:51:04
Message-ID: CACJufxGEMfv6OwjDvnd1dRveTpR6gvYJNCrkwjDWQ9-Q0ODgiQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-01-15 08:01:09 Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Previous Message Pavel Stehule 2025-01-15 07:28:13 Re: Re: proposal: schema variables