forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e4664d
committed
Add a new 'F' entry type for fixed-numbered stats in pgstats file
This new entry type is used for all the fixed-numbered statistics,making possible support for custom pluggable stats. In short, we needto be able to detect more easily if a stats kind exists or not whenreading back its data from the pgstats file without a dependency on theorder of the entries read. The kind ID of the stats is added to thedata written.The data is written in the same fashion as previously, with thefixed-numbered stats first and the dshash entries next. The read partbecomes more flexible, loading fixed-numbered stats into shared memorybased on the new entry type found.Bump PGSTAT_FILE_FORMAT_ID.Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Zot5bxoPYdS7yaoy@paquier.xyz1 parent21471f1 commit9e4664d
2 files changed
+34
-19
lines changedLines changed: 33 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
| 135 | + | |
135 | 136 |
| |
136 | 137 |
| |
137 | 138 |
| |
| |||
1396 | 1397 |
| |
1397 | 1398 |
| |
1398 | 1399 |
| |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
1399 | 1403 |
| |
1400 | 1404 |
| |
1401 | 1405 |
| |
| |||
1537 | 1541 |
| |
1538 | 1542 |
| |
1539 | 1543 |
| |
1540 |
| - | |
1541 |
| - | |
1542 |
| - | |
1543 |
| - | |
1544 |
| - | |
1545 |
| - | |
1546 |
| - | |
1547 |
| - | |
1548 |
| - | |
1549 |
| - | |
1550 |
| - | |
1551 |
| - | |
1552 |
| - | |
1553 |
| - | |
1554 |
| - | |
1555 |
| - | |
1556 | 1544 |
| |
1557 |
| - | |
1558 |
| - | |
| 1545 | + | |
| 1546 | + | |
1559 | 1547 |
| |
1560 | 1548 |
| |
1561 | 1549 |
| |
1562 | 1550 |
| |
1563 | 1551 |
| |
1564 | 1552 |
| |
1565 | 1553 |
| |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1566 | 1581 |
| |
1567 | 1582 |
| |
1568 | 1583 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 |
| - | |
| 238 | + | |
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
|
0 commit comments
Comments
(0)