Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option - Mailing list pgsql-hackers

From vignesh C
Subject Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
Date
Msg-id CALDaNm1VRGGOY0eYd02C7ro=s6URmx1R1UwRTW5FDW=a96ea9A@mail.gmail.com
Whole thread Raw
Responses Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
List pgsql-hackers
On Wed, 15 Jan 2025 at 13:21, jian he <jian.universality@gmail.com> wrote:
>
> 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.

Here is a rebased version along with the test failure fixes, please
accept the change if you are ok with it.

Regards,
Vignesh

Attachment

pgsql-hackers by date:

Previous
From: Maxim Orlov
Date:
Subject: Re: Proposal: Limitations of palloc inside checkpointer
Next
From: Aleksander Alekseev
Date:
Subject: Patch: Cover POSITION(bytea,bytea) with tests