forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5be8ce8
committed
Fix lookup error in extended stats ownership check
When an ownership check on extended statistics object failed, the codewas calling aclcheck_error_type to report the failure, which is clearlywrong, resulting in cache lookup errors. Fix by calling aclcheck_error.This issue exists since the introduction of extended statistics, sobackpatch all the way back to PostgreSQL 10. It went unnoticed becausethere were no tests triggering the error, so add one.Reported-by: Mark DilgerBackpatch-through: 10, where extended stats were introducedDiscussion:https://postgr.es/m/1F238937-7CC2-4703-A1B1-6DC225B8978A%40enterprisedb.com1 parent589be6f commit5be8ce8
File tree
3 files changed
+22
-1
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+22
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2571 | 2571 |
| |
2572 | 2572 |
| |
2573 | 2573 |
| |
2574 |
| - | |
| 2574 | + | |
| 2575 | + | |
2575 | 2576 |
| |
2576 | 2577 |
| |
2577 | 2578 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
70 | 81 |
| |
71 | 82 |
| |
72 | 83 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 |
| |
52 | 61 |
| |
53 | 62 |
| |
|
0 commit comments
Comments
(0)