forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite9c936f
committed
Remove rangechecks on errno; just call strerror unconditionally. This
eliminates a raft of portability issues, including whether sys_nerrexists, whether the platform has any valid negative errnos, etc. Thedownside is minimal: errno shouldn't ever contain an invalid value anyway,and if it does, reasonably modern versions of strerror will not choke.This rangecheck idea seemed good at the time, but it's clearly a net loss,and I apologize to all concerned for having ever put it in.1 parent60b282f commite9c936f
File tree
6 files changed
+53
-130
lines changed- config
- src
- backend/utils/error
- include
6 files changed
+53
-130
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
0 commit comments
Comments
(0)