
Export tables blocked by FORCE ROW LEVEL SECURITY via DBI
backup_rls_tables.RdExports one or more tables to CSV files using a DBI connection. Use this alongside `backup_database(exclude_table_data = ...)` to cover tables that pg_dump cannot dump due to `FORCE ROW LEVEL SECURITY` on managed servers (e.g. OVH) where superuser access is unavailable.
Examples
if (FALSE) { # \dontrun{
# Use together with backup_database() when FORCE RLS blocks pg_dump
backup_database(
backup_dir = "D:/my_backups",
sslmode = "require",
exclude_table_data = "taxa_traits_measures"
)
backup_rls_tables(
tables = "taxa_traits_measures",
backup_dir = "D:/my_backups"
)
} # }