Commit b3eb658
committed
Don't wait for ReadyForQuery after FATAL errors
When PostgreSQL sends a FATAL or PANIC ErrorResponse, it closes the
connection immediately without sending ReadyForQuery.
Postgrex unconditionally waited for ReadyForQuery, which would hit
tcp_closed and return a generic disconnect error, discarding the
original FATAL error.1 parent 3385a98 commit b3eb658
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
3071 | 3077 | | |
3072 | 3078 | | |
3073 | 3079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
1943 | 1963 | | |
1944 | 1964 | | |
1945 | 1965 | | |
| |||
0 commit comments