Clean up some problems in SetClientEncoding: failed to honor doit flag
Tom Lane <tgl@sss.pgh.pa.us>
Clean up some problems in SetClientEncoding: failed to honor doit flag in all cases, leaked TopMemoryContext memory in others. Make the interaction between SetClientEncoding and InitializeClientEncoding cleaner and better documented. I suspect these changes should be back-patched into 7.3, but will wait on Tatsuo's verification.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/variable.c | modified | +5 −5 |
| src/backend/utils/mb/mbutils.c | modified | +103 −62 |