forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4568e0f
committed
Modify AtEOXact_CatCache and AtEOXact_RelationCache to assume that the
ResourceOwner mechanism already released all reference counts for thecache entries; therefore, we do not need to scan the catcache or relcacheat transaction end, unless we want to do it as a debugging crosscheck.Do the crosscheck only in Assert mode. This is the same logic we hadpreviously installed in AtEOXact_Buffers to avoid overhead with largenumbers of shared buffers. I thought it'd be a good idea to do it heretoo, in view of Kari Lavikka's recent report showing a real-world casewhere AtEOXact_CatCache is taking a significant fraction of runtime.1 parentbe27a20 commit4568e0f
File tree
4 files changed
+233
-236
lines changed- src/backend
- access/transam
- utils
- cache
- resowner
4 files changed
+233
-236
lines changedLines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
1549 | 1549 |
| |
1550 | 1550 |
| |
1551 | 1551 |
| |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1552 | 1555 |
| |
1553 | 1556 |
| |
1554 | 1557 |
| |
| |||
1576 | 1579 |
| |
1577 | 1580 |
| |
1578 | 1581 |
| |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1579 | 1585 |
| |
1580 | 1586 |
| |
1581 | 1587 |
| |
| |||
1768 | 1774 |
| |
1769 | 1775 |
| |
1770 | 1776 |
| |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1771 | 1780 |
| |
1772 | 1781 |
| |
1773 | 1782 |
| |
| |||
1785 | 1794 |
| |
1786 | 1795 |
| |
1787 | 1796 |
| |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1788 | 1800 |
| |
1789 | 1801 |
| |
1790 | 1802 |
| |
| |||
1922 | 1934 |
| |
1923 | 1935 |
| |
1924 | 1936 |
| |
| 1937 | + | |
1925 | 1938 |
| |
1926 | 1939 |
| |
1927 | 1940 |
| |
| |||
1931 | 1944 |
| |
1932 | 1945 |
| |
1933 | 1946 |
| |
| 1947 | + | |
1934 | 1948 |
| |
1935 | 1949 |
| |
1936 | 1950 |
| |
|
0 commit comments
Comments
(0)