Add a pg_encoding_mbcliplen() function that is just like pg_mbcliplen()
authorTom Lane <[email protected]>
Sun, 4 Jan 2009 18:37:36 +0000 (18:37 +0000)
committerTom Lane <[email protected]>
Sun, 4 Jan 2009 18:37:36 +0000 (18:37 +0000)
commit48afb2ea9dbecc2a58d57bc42b450f14a8501c44
tree7f4856f0cadbbb514f573ef6416084ccaba30282
parent005050e6867add6b1ff0d845550254a1ce95424b
Add a pg_encoding_mbcliplen() function that is just like pg_mbcliplen()
except the caller can specify the encoding to work in; this will be needed
for pg_stat_statements.  In passing, do some marginal efficiency hacking
and clean up some comments.  Also, prevent the single-byte-encoding code
path from fetching one byte past the stated length of the string (this
last is a bug that might need to be back-patched at some point).
src/backend/utils/mb/mbutils.c
src/include/mb/pg_wchar.h