Commit 6b029f7
jcoleman
Fix broken insufficient privileges detection
This hasn't worked for quite some time because `pg_stat_activity` columns
`state_change` and `backend_type` are `null` when the user isn't a
superuser.1 parent 5883be3 commit 6b029f7
2 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6931 | 6931 | | |
6932 | 6932 | | |
6933 | 6933 | | |
6934 | | - | |
| 6934 | + | |
6935 | 6935 | | |
6936 | 6936 | | |
6937 | 6937 | | |
| |||
8703 | 8703 | | |
8704 | 8704 | | |
8705 | 8705 | | |
8706 | | - | |
| 8706 | + | |
8707 | 8707 | | |
8708 | 8708 | | |
8709 | 8709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
78 | 105 | | |
0 commit comments