postgresql/src
Tom Lane 49c817eab7 Plug some more holes in encoding conversion.
Various places assume that pg_do_encoding_conversion() and
pg_server_to_any() will ensure encoding validity of their results;
but they failed to do so in the case that the source encoding is SQL_ASCII
while the destination is not.  We cannot perform any actual "conversion"
in that scenario, but we should still validate the string according to the
destination encoding.  Per bug #9210 from Digoal Zhou.

Arguably this is a back-patchable bug fix, but on the other hand adding
more enforcing of encoding checks might break existing applications that
were being sloppy.  On balance there doesn't seem to be much enthusiasm
for a back-patch, so fix in HEAD only.

While at it, remove some apparently-no-longer-needed provisions for
letting pg_do_encoding_conversion() "work" outside a transaction ---
if you consider it "working" to silently fail to do the requested
conversion.

Also, make a few cosmetic improvements in mbutils.c, notably removing
some Asserts that are certainly dead code since the variables they
assert aren't null are never null, even at process start.  (I think
this wasn't true at one time, but it is now.)
2014-02-23 15:22:50 -05:00
..
backend Plug some more holes in encoding conversion. 2014-02-23 15:22:50 -05:00
bin pg_basebackup: Add support for relocating tablespaces 2014-02-22 13:38:06 -05:00
common Prevent potential overruns of fixed-size buffers. 2014-02-17 11:20:21 -05:00
include Switch various builtin functions to use pg_lsn instead of text. 2014-02-19 11:37:43 -05:00
interfaces Fix some missing .gitignore and "make clean" items in ecpg. 2014-02-19 18:50:48 -05:00
makefiles Flush a stray definition of $(DLLTOOL). 2014-02-11 12:59:48 -05:00
pl Prevent privilege escalation in explicit calls to PL validators. 2014-02-17 09:33:31 -05:00
port Fix unportable coding in tarCreateHeader(). 2014-02-16 20:01:18 -05:00
template Revert to using --enable-auto-import in Cygwin builds. 2014-02-16 15:14:04 -05:00
test Further code review for pg_lsn data type. 2014-02-19 10:06:59 -05:00
timezone Prevent potential overruns of fixed-size buffers. 2014-02-17 11:20:21 -05:00
tools Disable RandomizedBaseAddress on MSVC builds 2014-02-18 14:45:58 +01:00
tutorial Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Cygwin build fixes. 2014-02-11 12:10:52 -05:00
Makefile.shlib Tweak position of $(DLL_DEFFILE) in shared-library link commands. 2014-02-12 11:22:23 -05:00
nls-global.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
win32.mak