Clean up some problems in SetClientEncoding: failed to honor doit flag

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5f15fa8d0693a333f37eb2b44c10d2f784202615
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-04-27T17:31:25Z
Releases: 7.4.1
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

PathChange+/−
src/backend/commands/variable.c modified +5 −5
src/backend/utils/mb/mbutils.c modified +103 −62