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

From: Nikolay Samokhvalov <nik(at)postgres(dot)ai>
To: pgsql-hackers mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
Date: 2025-01-09 20:32:53
Message-ID: CAM527d8kG2qPKvbfJ=OYJkT7iRNd623Bk+m-a4ngm+nyHYsHog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

pg_dump[all] and pg_restore have a lot of "--no-XXX" options,

I noticed there is no "--no-policies"; the patch implements it for pg_dump,
pg_dumpall, and pg_restore.

This can be useful in scenarios where policies need to be redefined in the
target system or when moving data between environments with different
security requirements.

Looking for feedback.

Nik

Attachment Content-Type Size
0001-pg_dump-pg_dumpall-pg_restore-Add-no-policies-option.patch application/octet-stream 10.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2025-01-09 20:36:16 Re: Adding support for SSLKEYLOGFILE in the frontend
Previous Message Alvaro Herrera 2025-01-09 19:52:43 Re: why there is not VACUUM FULL CONCURRENTLY?