forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd707495
committed
Fix thinko in recent patch to change temp-table permissions behavior:
this is an aclmask function and does not have the same return conventionas aclcheck functions. Also adjust the behavior so that users withoutCREATE TEMP permission still have USAGE permission on their session'stemp schema. This allows privileged code to create a temp table andmake it accessible to code that's not got the same privilege. (Sincethe default permissions on a table are no-access, an explicit grant onthe table will still be needed; but I see no reason that the temp schemaitself should prohibit such access.)1 parenta6ea645 commitd707495
2 files changed
+28
-17
lines changedLines changed: 23 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1347 | 1347 |
| |
1348 | 1348 |
| |
1349 | 1349 |
| |
1350 |
| - | |
1351 |
| - | |
1352 |
| - | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1353 | 1355 |
| |
1354 |
| - | |
1355 |
| - | |
1356 |
| - | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1357 | 1366 |
| |
1358 |
| - | |
1359 |
| - | |
1360 |
| - | |
1361 |
| - | |
1362 |
| - | |
1363 |
| - | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1364 | 1374 |
| |
1365 | 1375 |
| |
1366 | 1376 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1640 | 1640 |
| |
1641 | 1641 |
| |
1642 | 1642 |
| |
1643 |
| - | |
1644 |
| - | |
1645 |
| - | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
1646 | 1647 |
| |
1647 | 1648 |
| |
1648 | 1649 |
| |
|
0 commit comments
Comments
(0)