- Notifications
You must be signed in to change notification settings - Fork28
Commitdcbec53
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 parentdc10deb commitdcbec53
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 | |
---|---|---|---|
| |||
1049 | 1049 |
| |
1050 | 1050 |
| |
1051 | 1051 |
| |
1052 |
| - | |
1053 |
| - | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1054 | 1056 |
| |
1055 | 1057 |
| |
1056 | 1058 |
| |
|
0 commit comments
Comments
(0)