- Notifications
You must be signed in to change notification settings - Fork5
Commitd4aa491
committed
Make CREATE EXTENSION check schema creation permissions.
When creating a new schema for a non-relocatable extension, we neglectedto check whether the calling user has permission to create schemas.That didn't matter in the original coding, since we had already checkedsuperuserness, but in the new dispensation where users need not besuperusers, we should check it. Use CreateSchemaCommand() rather thancalling NamespaceCreate() directly, so that we also enforce the rulesabout reserved schema names.Per complaint from KaiGai Kohei, though this isn't the same as his patch.1 parent43f0c20 commitd4aa491
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
1370 | 1371 |
| |
1371 | 1372 |
| |
1372 | 1373 |
| |
1373 |
| - | |
1374 |
| - | |
1375 |
| - | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
1376 | 1386 |
| |
1377 | 1387 |
| |
1378 | 1388 |
| |
|
0 commit comments
Comments
(0)