forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8545482
committed
When a superuser does GRANT or REVOKE on an object he doesn't own,
process the command as though it were issued by the object owner.This prevents creating weird scenarios in which the same privilegesmay appear to flow from different sources, and ensures that a superusercan in fact revoke all privileges if he wants to. In particular thismeans that the regression tests work when run by a superuser other thanthe original bootstrap userid. Per report from Larry Rosenman.1 parent19554ed commit8545482
File tree
3 files changed
+135
-67
lines changed- doc/src/sgml/ref
- src/backend/catalog
3 files changed
+135
-67
lines changedLines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
75 | 73 |
| |
76 | 74 |
| |
77 | 75 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 |
| |
83 | 85 |
| |
84 | 86 |
| |
| |||
263 | 265 |
| |
264 | 266 |
| |
265 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
266 | 275 |
| |
267 | 276 |
| |
268 | 277 |
| |
|
Lines changed: 17 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 |
| |
67 | 72 |
| |
68 | 73 |
| |
| |||
73 | 78 |
| |
74 | 79 |
| |
75 | 80 |
| |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
119 | 128 |
| |
120 | 129 |
| |
121 | 130 |
| |
| |||
153 | 162 |
| |
154 | 163 |
| |
155 | 164 |
| |
156 |
| - | |
| 165 | + | |
| 166 | + | |
157 | 167 |
| |
158 | 168 |
| |
159 | 169 |
| |
|
0 commit comments
Comments
(0)