forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf30f34e
committed
Ignore tablespace ACLs when ignoring schema ACLs.
The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX andCREATE INDEX to refit existing indexes for the new column type. Sincethis CREATE INDEX is an implementation detail of an index alteration,the ensuing DefineIndex() should skip ACL checks specific to indexcreation. It already skips the namespace ACL check. Make it skip thetablespace ACL check, too. Back-patch to 9.2 (all supported versions).Reviewed by Tom Lane.1 parent2ea5b06 commitf30f34e
File tree
3 files changed
+20
-5
lines changed- src
- backend/commands
- test/regress
- input
- output
3 files changed
+20
-5
lines changedLines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
297 |
| - | |
| 296 | + | |
| 297 | + | |
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
| |||
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
438 |
| - | |
439 |
| - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
440 | 441 |
| |
441 | 442 |
| |
442 | 443 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 |
| |
116 | 122 |
| |
| 123 | + | |
117 | 124 |
| |
118 | 125 |
| |
119 | 126 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
| 224 | + | |
224 | 225 |
| |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
225 | 230 |
| |
226 | 231 |
| |
227 | 232 |
| |
| 233 | + | |
228 | 234 |
| |
229 | 235 |
| |
230 | 236 |
| |
| |||
235 | 241 |
| |
236 | 242 |
| |
237 | 243 |
| |
238 |
| - | |
| 244 | + | |
239 | 245 |
| |
240 | 246 |
| |
241 | 247 |
| |
242 | 248 |
| |
| 249 | + | |
243 | 250 |
| |
244 | 251 |
|
0 commit comments
Comments
(0)