postgresql/src
Heikki Linnakangas 138313ebaa Fix mapping of PostgreSQL encodings to Python encodings.
Windows encodings, "win1252" and so forth, are named differently in Python,
like "cp1252". Also, if the PyUnicode_AsEncodedString() function call fails
for some reason, use a plain ereport(), not a PLy_elog(), to report that
error. That avoids recursion and crash, if PLy_elog() tries to call
PLyUnicode_Bytes() again.

This fixes bug reported by Asif Naeem. Backpatch down to 9.0, before that
plpython didn't even try these conversions.

Jan Urbański, with minor comment improvements by me.
2012-07-05 22:32:04 +03:00
..
backend Always treat a standby returning an an invalid flush location as async 2012-07-04 15:24:17 +02:00
bin Improve pg_dump's dependency-sorting logic to enforce section dump order. 2012-06-25 21:19:28 -04:00
include Have REASSIGN OWNED work on extensions, too 2012-07-03 15:19:02 -04:00
interfaces Update copyright year in forgotten places 2012-06-19 21:36:08 +03:00
makefiles Fix pgxs.mk to always add --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS. 2011-08-24 15:17:03 -04:00
pl Fix mapping of PostgreSQL encodings to Python encodings. 2012-07-05 22:32:04 +03:00
port Stamp 9.1.4. 2012-05-31 19:07:09 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Fix error message for COMMENT/SECURITY LABEL ON COLUMN xxx IS 'yyy' 2012-05-22 11:24:16 -04:00
timezone Update time zone data files to tzdata release 2012c. 2012-05-31 00:48:04 -04:00
tools Fix MSVC builds broken by xsubpp change 2011-11-27 01:23:00 -05:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00