forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit495864a
committed
Refactor code of pg_stat_get_wal() building result tuple
This commit adds to pgstatfuncs.c a new routine calledpg_stat_wal_build_tuple(), helper routine for pg_stat_get_wal(). Thisis in charge of filling one tuple based on the contents ofPgStat_WalStats retrieved from pgstats.This refactoring will be used by an upcoming patch introducingbackend-level WAL statistics, simplifying the main patch. Note thatit is not possible for stats_reset to be NULL in pg_stat_wal; backendstatistics need to be able to handle this case.Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Discussion:https://postgr.es/m/Z3zqc4o09dM/Ezyz@ip-10-97-1-34.eu-west-3.compute.internal1 parent62ec3e1 commit495864a
1 file changed
+30
-14
lines changedLines changed: 30 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1632 | 1632 |
| |
1633 | 1633 |
| |
1634 | 1634 |
| |
1635 |
| - | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
1636 | 1639 |
| |
1637 |
| - | |
1638 |
| - | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1639 | 1643 |
| |
1640 |
| - | |
| 1644 | + | |
1641 | 1645 |
| |
1642 |
| - | |
1643 |
| - | |
| 1646 | + | |
| 1647 | + | |
1644 | 1648 |
| |
1645 |
| - | |
1646 |
| - | |
1647 | 1649 |
| |
1648 | 1650 |
| |
1649 |
| - | |
| 1651 | + | |
1650 | 1652 |
| |
1651 | 1653 |
| |
1652 | 1654 |
| |
| |||
1660 | 1662 |
| |
1661 | 1663 |
| |
1662 | 1664 |
| |
1663 |
| - | |
1664 |
| - | |
1665 |
| - | |
1666 |
| - | |
1667 | 1665 |
| |
1668 | 1666 |
| |
1669 | 1667 |
| |
| |||
1677 | 1675 |
| |
1678 | 1676 |
| |
1679 | 1677 |
| |
1680 |
| - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1681 | 1682 |
| |
1682 | 1683 |
| |
1683 | 1684 |
| |
1684 | 1685 |
| |
1685 | 1686 |
| |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1686 | 1702 |
| |
1687 | 1703 |
| |
1688 | 1704 |
| |
|
0 commit comments
Comments
(0)