diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-16 18:08:15 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-16 18:08:15 -0400 |
commit | cd3c45125d2d92e86ad7530b162562a23d063c26 (patch) | |
tree | e43f923efbd683e1db726e16d4882907708f7ae8 /src/backend/access/transam/xlog.c | |
parent | 44890442398cf3a65230d53167e61905d2b0d348 (diff) | |
download | postgresql-cd3c45125d2d92e86ad7530b162562a23d063c26.tar.gz postgresql-cd3c45125d2d92e86ad7530b162562a23d063c26.zip |
pg_dump, pg_dumpall, pg_restore: Add --no-policies option.
Add --no-policies option to control row level security policy handling
in dump and restore operations. When this option is used, both CREATE
POLICY commands and ALTER TABLE ... ENABLE ROW LEVEL SECURITY commands
are excluded from dumps and skipped during restores.
This is useful in scenarios where policies need to be redefined in the
target system or when moving data between environments with different
security requirements.
Author: Nikolay Samokhvalov <nik@postgres.ai>
Reviewed-by: Greg Sabino Mullane <htamfids@gmail.com>
Reviewed-by: Jim Jones <jim.jones@uni-muenster.de>
Reviewed-by: newtglobal postgresql_contributors <postgresql_contributors@newtglobalcorp.com>
Discussion: https://postgr.es/m/CAM527d8kG2qPKvbfJ=OYJkT7iRNd623Bk+m-a4ngm+nyHYsHog@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions