Skip to content

Add --skip-row-security to skip policies and RLS enablement - #72

Merged
teknogeek0 merged 1 commit into
mainfrom
feat/skip-row-security
Oct 29, 2026
Merged

teknogeek0 merged 1 commit into
mainfrom
feat/skip-row-security

Conversation

@teknogeek0

Copy link
Copy Markdown
Collaborator

Remove POLICY, ROW SECURITY, and COMMENT ON POLICY entries from the pg_restore list. Use it when source policies name roles that do not exist on the target.

The archive parser now records POLICY as the object type of a COMMENT entry. pg_restore does not skip a comment when its policy is out of the list: the comment takes the section of the entry before it, so it can run and fail.

Remove POLICY, ROW SECURITY, and COMMENT ON POLICY entries from the
pg_restore list. Use it when source policies name roles that do not
exist on the target.

@DmitriiAn DmitriiAn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teknogeek0
teknogeek0 merged commit 906681f into main Oct 29, 2026
227 of 228 checks passed
@teknogeek0
teknogeek0 deleted the feat/skip-row-security branch October 29, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants