- Notifications
You must be signed in to change notification settings - Fork28
Commit8299471
committed
Use LEFT JOINs in some system views in case referenced row doesn't exist.
In particular, left join to pg_authid so that rows in pg_stat_activitydon't disappear if the session's owning user has been dropped.Also convert a few joins to pg_database to left joins, in the same spirit,though that case might be harder to hit. We were doing this in otherviews already, so it was a bit inconsistent that these views didn't.Oskari Saarenmaa, with some further tweaking by meDiscussion: <56E87CD8.60007@ohmu.fi>1 parent65a603e commit8299471
File tree
3 files changed
+19
-23
lines changed- src
- backend/catalog
- include/catalog
- test/regress/expected
3 files changed
+19
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
646 | | - | |
647 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
671 | 670 | | |
672 | 671 | | |
673 | 672 | | |
| |||
813 | 812 | | |
814 | 813 | | |
815 | 814 | | |
816 | | - | |
| 815 | + | |
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
| |||
832 | 831 | | |
833 | 832 | | |
834 | 833 | | |
835 | | - | |
836 | | - | |
| 834 | + | |
| 835 | + | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
841 | 839 | | |
842 | 840 | | |
843 | 841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1671 | 1670 | | |
1672 | 1671 | | |
1673 | 1672 | | |
| |||
1776 | 1775 | | |
1777 | 1776 | | |
1778 | 1777 | | |
1779 | | - | |
| 1778 | + | |
1780 | 1779 | | |
1781 | 1780 | | |
1782 | 1781 | | |
| |||
1793 | 1792 | | |
1794 | 1793 | | |
1795 | 1794 | | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
1800 | 1798 | | |
1801 | 1799 | | |
1802 | 1800 | | |
| |||
2155 | 2153 | | |
2156 | 2154 | | |
2157 | 2155 | | |
2158 | | - | |
2159 | | - | |
| 2156 | + | |
| 2157 | + | |
2160 | 2158 | | |
2161 | 2159 | | |
2162 | 2160 | | |
| |||
0 commit comments
Comments
(0)