Commit 8d675c8
committed
pgstat's on-proc-exit hook has to execute after the last transaction commit
or abort within a backend; rearrange InitPostgres processing to make it so.
Revealed by just-added Asserts along with ECPG regression tests (hm, I wonder
why the core regression tests didn't expose it?). This possibly is another
reason for missing stats updates ...1 parent 77947c5 commit 8d675c8
File tree
3 files changed
+36
-18
lines changed- src
- backend
- postmaster
- utils/init
- include
3 files changed
+36
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
1771 | 1771 | | |
1772 | 1772 | | |
1773 | 1773 | | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1774 | 1794 | | |
1775 | 1795 | | |
1776 | 1796 | | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1780 | 1800 | | |
1781 | 1801 | | |
1782 | 1802 | | |
1783 | 1803 | | |
1784 | 1804 | | |
1785 | | - | |
1786 | 1805 | | |
1787 | 1806 | | |
1788 | 1807 | | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
| 1808 | + | |
1792 | 1809 | | |
1793 | 1810 | | |
1794 | | - | |
1795 | | - | |
| 1811 | + | |
| 1812 | + | |
1796 | 1813 | | |
1797 | 1814 | | |
1798 | 1815 | | |
| |||
1839 | 1856 | | |
1840 | 1857 | | |
1841 | 1858 | | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | 1859 | | |
1848 | 1860 | | |
1849 | 1861 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
438 | 442 | | |
439 | 443 | | |
440 | 444 | | |
| |||
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
590 | | - | |
| 594 | + | |
591 | 595 | | |
592 | 596 | | |
593 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
504 | 505 | | |
| 506 | + | |
505 | 507 | | |
506 | 508 | | |
507 | 509 | | |
| |||
0 commit comments