Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query would be affected by row-level security policy #496

Open
12diego34 opened this issue Nov 20, 2023 · 0 comments
Open

Query would be affected by row-level security policy #496

12diego34 opened this issue Nov 20, 2023 · 0 comments

Comments

@12diego34
Copy link

Bug Report

pg_dump: error: query failed: ERROR: query would be affected by row-level security policy for table

Describe the bug

Within a postgresql database, hosted in aws, I have a series of tables that have the row-level policy activated.

When I want to run the backup on S3, I get the error:

pg_dump: error: query failed: ERROR: query would be affected by row-level security policy.
HINT: To disable the policy for the table's owner, use ALTER TABLE NO FORCE ROW LEVEL SECURITY

To Reproduce

In order to reproduce the error, you can have a table with the row-level policy activated and try to make a backup. I don't know if it matters if the destination is an S3 bucket.

Expected behavior

Being able to make a backup of the database, regardless of whether there are tables that have or do not have the policy activated at the row level.

Versions

Django-dbbackup

  • pypi: 4.0.2

External tools

  • Python: 3.8.10
  • Django: 3.2.4
  • OS: Ubuntu 20.04.6 LTS
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

No branches or pull requests

1 participant