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
Copy file name to clipboardExpand all lines: articles/postgresql/migrate/migration-service/concepts-user-roles-migration-service.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,12 @@ Allowing unrestricted access to these system tables and views could lead to unau
56
56
57
57
### pg_pltemplate deprecation
58
58
59
-
Another important consideration is the deprecation of the **pg_pltemplate** system table within the pg_catalog schema by the PostgreSQL community **starting from version 13.**Therefore, if you're migrating to Flexible Server versions 13 and above, and if you have granted permissions to users on the pg_pltemplate table, it is necessary to undo these permissions before initiating the migration process.
59
+
Another important consideration is the deprecation of the **pg_pltemplate** system table within the pg_catalog schema by the PostgreSQL community **starting from version 13.**If you're migrating to Flexible Server versions 13 and above and have granted permissions to users on the pg_pltemplate table on your single server, you mist revoke these permissions before initiating a new migration.
60
60
61
61
#### What is the impact?
62
-
- If your application is designed to directly query the affected tables and views, it will encounter issues upon migrating to the flexible server. We strongly advise you to refactor your application to avoid direct queries to these system tables.
62
+
- If your application is designed to directly query the affected tables and views, it encounters issues upon migrating to the flexible server. We strongly advise you to refactor your application to avoid direct queries to these system tables.
63
63
64
-
- If you have specifically granted or revoked privileges to any users or roles for the affected pg_catalog tables and views, you will encounter an error during the migration process. This error will be identified by the following pattern:
64
+
- If you have granted or revoked privileges to any users or roles for the affected pg_catalog tables and views, you encounter an error during the migration process. This error will be identified by the following pattern:
65
65
66
66
```sql
67
67
pg_restore error: could not execute query <GRANT/REVOKE><PRIVILEGES>on<affected TABLE/VIEWS> to <user>.
@@ -95,26 +95,27 @@ GROUP BY
95
95
96
96
**Step 2: Review the Output**
97
97
98
-
The output of the above query will show the list of privileges granted to roles on the impacted tables and views.
98
+
The output of the query shows the list of privileges granted to roles on the impacted tables and views.
99
99
100
100
For example:
101
-
102
101
| Privileges | Relation name | Grantee |
103
-
| :--- |:--- |:--- |
104
-
| SELECT | pg_authid | adminuser1
105
-
| SELECT, UPDATE | pg_shadow | adminuser2
102
+
| :--- |:--- |:--- |
103
+
| SELECT | pg_authid | adminuser1|
104
+
| SELECT, UPDATE |pg_shadow | adminuser2|
106
105
107
106
**Step 3: Undo the privileges**
108
107
109
-
To undo the privileges, run REVOKE statements for each privilege on the relation from the grantee. In the above example, you would run:
108
+
To undo the privileges, run REVOKE statements for each privilege on the relation from the grantee. In this example, you would run:
110
109
111
110
```sql
112
111
REVOKESELECTON pg_authid FROM adminuser1;
113
112
REVOKESELECTON pg_shadow FROM adminuser2;
114
113
REVOKEUPDATEON pg_shadow FROM adminuser2;
115
114
```
115
+
> [!NOTE]
116
+
> Make sure you perform the above steps for all the databases included in the migration to avoid any permission-related issues during the migration..
116
117
117
-
After completing these steps, you can proceed to initiate a new migration from the single server to the flexible server using the migration service. You should not encounter permission-related issues during this process.
118
+
After completing these steps, you can proceed to initiate a new migration from the single server to the flexible server using the migration service. You shouldn't encounter permission-related issues during this process.
0 commit comments