forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c3e475
committed
Fix a couple of problems in pg_get_statisticsextdef
There was a thinko whereby we tested the wrong tuple after fetching itfrom cache; avoid that by using generate_relation_name instead, which issimpler. Also, the statistics name was not qualified, so add that. (Itcould be argued that qualification should be conditional on the schemanot being on search path. We can add that later, but at least this formis correct.)Author: David Rowley, Álvaro HerreraDiscussion:https://postgr.es/m/CAKJS1f8RjLeVZJ2+93pdQGuZJeBF-ifsHaFMR-q-6-Z0qxA8cA@mail.gmail.com1 parentb563594 commit2c3e475
File tree
5 files changed
+23
-15
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
5 files changed
+23
-15
lines changedLines changed: 5 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1448 | 1448 |
| |
1449 | 1449 |
| |
1450 | 1450 |
| |
1451 |
| - | |
1452 | 1451 |
| |
1453 |
| - | |
1454 | 1452 |
| |
1455 | 1453 |
| |
| 1454 | + | |
1456 | 1455 |
| |
1457 | 1456 |
| |
1458 | 1457 |
| |
| |||
1465 | 1464 |
| |
1466 | 1465 |
| |
1467 | 1466 |
| |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
1472 |
| - | |
1473 |
| - | |
1474 |
| - | |
1475 |
| - | |
1476 |
| - | |
1477 |
| - | |
1478 | 1467 |
| |
1479 | 1468 |
| |
| 1469 | + | |
1480 | 1470 |
| |
1481 |
| - | |
| 1471 | + | |
| 1472 | + | |
1482 | 1473 |
| |
1483 | 1474 |
| |
1484 | 1475 |
| |
| |||
1494 | 1485 |
| |
1495 | 1486 |
| |
1496 | 1487 |
| |
1497 |
| - | |
| 1488 | + | |
1498 | 1489 |
| |
1499 | 1490 |
| |
1500 |
| - | |
1501 | 1491 |
| |
1502 | 1492 |
| |
1503 | 1493 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3167 | 3167 |
| |
3168 | 3168 |
| |
3169 | 3169 |
| |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
3170 | 3176 |
| |
3171 | 3177 |
| |
3172 | 3178 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 |
| |
9 | 16 |
| |
10 | 17 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 | 1152 |
| |
| 1153 | + | |
1153 | 1154 |
| |
1154 | 1155 |
| |
1155 | 1156 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 |
| |
11 | 15 |
| |
12 | 16 |
| |
|
0 commit comments
Comments
(0)