forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf75cec4
Fix ExecCheckPermissions call in RI_Initial_Check
RI_Initial_Check was setting up a list of RTEPermissionInfo forExecCheckPermissions() wrong, and the problem is subtle enough that itdoesn't have any immediate effect in core code. However, if anextension is using the ExecutorCheckPerms_hook, then it would get thewrong parameters and perhaps arrive at a wrong conclusion, or outrightmalfunction. Fix by constructing that list and the RTE list morehonestly.We also add an assertion check to verify that these lists match. Thisnew assertion would have caught this bug.Co-authored-by: Олег Целебровский (Oleg Tselebrovskii) <o.tselebrovskiy@postgrespro.ru>Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Amit Langote <amitlangote09@gmail.com>Discussion:https://postgr.es/m/3722b7a2cbe27a1796ee40824bd86dd1@postgrespro.ru1 parent4c40995 commitf75cec4
2 files changed
+46
-18
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
587 | 609 |
| |
588 | 610 |
| |
589 | 611 |
| |
|
Lines changed: 24 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1373 | 1373 |
| |
1374 | 1374 |
| |
1375 | 1375 |
| |
1376 |
| - | |
1377 |
| - | |
| 1376 | + | |
1378 | 1377 |
| |
1379 | 1378 |
| |
| 1379 | + | |
| 1380 | + | |
1380 | 1381 |
| |
1381 | 1382 |
| |
1382 | 1383 |
| |
| |||
1394 | 1395 |
| |
1395 | 1396 |
| |
1396 | 1397 |
| |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 |
| - | |
1403 | 1398 |
| |
1404 | 1399 |
| |
1405 | 1400 |
| |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
1411 |
| - | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1412 | 1409 |
| |
1413 | 1410 |
| |
1414 | 1411 |
| |
1415 | 1412 |
| |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1416 | 1421 |
| |
1417 | 1422 |
| |
1418 | 1423 |
| |
| |||
1425 | 1430 |
| |
1426 | 1431 |
| |
1427 | 1432 |
| |
1428 |
| - | |
1429 |
| - | |
| 1433 | + | |
1430 | 1434 |
| |
1431 | 1435 |
| |
1432 | 1436 |
| |
| |||
1436 | 1440 |
| |
1437 | 1441 |
| |
1438 | 1442 |
| |
1439 |
| - | |
| 1443 | + | |
| 1444 | + | |
1440 | 1445 |
| |
1441 |
| - | |
| 1446 | + | |
| 1447 | + | |
1442 | 1448 |
| |
1443 | 1449 |
| |
1444 | 1450 |
| |
|
0 commit comments
Comments
(0)