You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following minimal reproducible example:
Create a table public.test with row-level security (RLS) enabled and a simple default-allow policy defined:
CREATETABLEpublic.test (
"id"integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
title text
);
ALTERTABLEpublic.test ENABLE ROW LEVEL SECURITY;
CREATE POLICY default_allow ONpublic.testAS PERMISSIVE FOR ALL TO PUBLIC USING (TRUE);
Try to append to this table via DBI::dbAppendTable():
Thank you a lot, that works! I didn't realize I could provide a copy arg.
I think this issue can be closed then. Although the error message could be extended to be more helpful (i.e. mention the copy arg), I guess... or would this be too Postgres-specific?
Thanks. No, if we wanted a specific error message for this condition, we'd want to raise it here, but I wouldn't know how to detect it. PR welcome, but then a web search for this error message will also find this issue, so I wonder if it's worth it.
Consider the following minimal reproducible example:
Create a table
public.test
with row-level security (RLS) enabled and a simple default-allow policy defined:Try to append to this table via
DBI::dbAppendTable()
:(Complete the
conn
arg with valid credentials!)It will fail with the following error:
Without RLS enabled,
dbAppendTable()
succeeds.I'm unsure whether this issue should be reported here or rather over at the DBI repo. Please let me know if I should move it there.
The text was updated successfully, but these errors were encountered: