From 9ee404b019898b15d1b716c6b4dbb3c6eaff8ac1 Mon Sep 17 00:00:00 2001 From: Shalini Lohia Date: Sat, 19 Oct 2024 09:32:49 +0000 Subject: [PATCH] Support db_datareader/db_datawriter --- src/bin/pg_dump/dump_babel_utils.c | 6 +++--- src/bin/pg_dump/dumpall_babel_utils.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/pg_dump/dump_babel_utils.c b/src/bin/pg_dump/dump_babel_utils.c index 30496438e7d..6d8ba85c208 100644 --- a/src/bin/pg_dump/dump_babel_utils.c +++ b/src/bin/pg_dump/dump_babel_utils.c @@ -53,9 +53,9 @@ typedef enum { static babelfish_status bbf_status = NONE; static char *default_bbf_db_principals = - "('master_dbo', 'master_db_owner', 'master_guest', 'master_db_accessadmin', " - "'msdb_dbo', 'msdb_db_owner', 'msdb_guest', 'msdb_db_accessadmin', " - "'tempdb_dbo', 'tempdb_db_owner', 'tempdb_guest', 'tempdb_db_accessadmin') "; + "('master_dbo', 'master_db_owner', 'master_guest', 'master_db_accessadmin', 'master_db_datareader', 'master_db_datawriter', " + "'msdb_dbo', 'msdb_db_owner', 'msdb_guest', 'msdb_db_accessadmin', 'msdb_db_datareader', 'msdb_db_datawriter', " + "'tempdb_dbo', 'tempdb_db_owner', 'tempdb_guest', 'tempdb_db_accessadmin', 'tempdb_db_datareader', 'tempdb_db_datawriter') "; diff --git a/src/bin/pg_dump/dumpall_babel_utils.c b/src/bin/pg_dump/dumpall_babel_utils.c index 835a1f84886..d30c713f7bc 100644 --- a/src/bin/pg_dump/dumpall_babel_utils.c +++ b/src/bin/pg_dump/dumpall_babel_utils.c @@ -36,9 +36,9 @@ typedef enum { static babelfish_status bbf_status = NONE; static char default_bbf_roles[] = "('sysadmin', 'bbf_role_admin', 'securityadmin', " - "'master_dbo', 'master_db_owner', 'master_guest', 'master_db_accessadmin', " - "'msdb_dbo', 'msdb_db_owner', 'msdb_guest', 'msdb_db_accessadmin', " - "'tempdb_dbo', 'tempdb_db_owner', 'tempdb_guest', 'tempdb_db_accessadmin')"; + "'master_dbo', 'master_db_owner', 'master_guest', 'master_db_accessadmin', 'master_db_datareader', 'master_db_datawriter', " + "'msdb_dbo', 'msdb_db_owner', 'msdb_guest', 'msdb_db_accessadmin', 'msdb_db_datareader', 'msdb_db_datawriter', " + "'tempdb_dbo', 'tempdb_db_owner', 'tempdb_guest', 'tempdb_db_accessadmin', 'tempdb_db_datareader', 'tempdb_db_datawriter')"; /* * Run a query, return the results, exit program on failure.