Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
Nikolay Samokhvalov <nik@postgres.ai>
From: Nikolay Samokhvalov <nik@postgres.ai>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: pgsql-hackers mailing list <pgsql-hackers@postgresql.org>
Date: 2025-01-10T18:50:05Z
Lists: pgsql-hackers
Attachments
- 0002-pg_dump-pg_dumpall-pg_restore-Add-no-policies-option.patch (application/x-patch)
Thank you Greg. 002_pg_dump.pl already deals with CREATE POLICY and ALTER TABLE .. ENABLE ROW LEVEL SECURITY, so I just added "--no-policies" there, to have basic coverage. Nik On Fri, Jan 10, 2025 at 9:44 AM Greg Sabino Mullane <htamfids@gmail.com> wrote: > Looks good to me. Would ideally like to see some tests: should be easy > enough to add to t/002_pg_dump.pl, but probably not worth it just for a > simple flag like this? We don't test a lot of other flags, but on the other > hand, that's what a test suite is supposed to do. > > Cheers, > Greg > >