forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite02571b
committed
Don't call pgwin32_message_to_UTF16() without CurrentMemoryContext.
PostgreSQL running as a Windows service crashed upon callingwrite_stderr() before MemoryContextInit(). This fix completes workstarted in5735efe. Messages thisearly contain only ASCII bytes; if we removed the CurrentMemoryContextrequirement, the ensuing conversions would have no effect. Back-patchto 9.3 (all supported versions).Takayuki Tsunakawa, reviewed by Michael Paquier.Discussion:https://postgr.es/m/0A3221C70F24FB45833433255569204D1F80CC73@G01JPEXMBYT051 parent0b7e76e commite02571b
2 files changed
+9
-2
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2117 | 2117 |
| |
2118 | 2118 |
| |
2119 | 2119 |
| |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2120 | 2124 |
| |
2121 | 2125 |
| |
2122 | 2126 |
| |
2123 | 2127 |
| |
| 2128 | + | |
2124 | 2129 |
| |
2125 | 2130 |
| |
2126 | 2131 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1038 | 1038 |
| |
1039 | 1039 |
| |
1040 | 1040 |
| |
1041 |
| - | |
1042 |
| - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1043 | 1045 |
| |
1044 | 1046 |
| |
1045 | 1047 |
| |
|
0 commit comments
Comments
(0)