postgresql/src
Tom Lane 1d2f9de38d Fix freshly-introduced PL/Python portability bug.
It turns out that those PyErr_Clear() calls I removed from plpy_elog.c
in 7e3bb08038 et al were not quite as random as they appeared: they
mask a Python 2.3.x bug.  (Specifically, it turns out that PyType_Ready()
can fail if the error indicator is set on entry, and PLy_traceback's fetch
of frame.f_code may be the first operation in a session that requires the
"frame" type to be readied.  Ick.)  Put back the clear call, but in a more
centralized place closer to what it's protecting, and this time with a
comment warning what it's really for.

Per buildfarm member prairiedog.  Although prairiedog was only failing
on HEAD, it seems clearly possible for this to occur in older branches
as well, so back-patch to 9.2 the same as the previous patch.
2016-04-11 18:17:20 -04:00
..
backend Use static inline function for BufferGetPage() 2016-04-11 16:47:50 -05:00
bin pg_dump: add missing "destroyPQExpBuffer(query)" in dumpForeignServer(). 2016-04-11 00:00:08 -04:00
common Remove redundant message in AddUserToTokenDacl(). 2016-04-06 23:40:51 -04:00
fe_utils Support \crosstabview in psql 2016-04-08 20:23:18 -03:00
include Use static inline function for BufferGetPage() 2016-04-11 16:47:50 -05:00
interfaces Distrust external OpenSSL clients; clear err queue 2016-04-08 14:11:56 -04:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl Fix freshly-introduced PL/Python portability bug. 2016-04-11 18:17:20 -04:00
port Standardize GetTokenInformation() error reporting. 2016-04-06 23:41:43 -04:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Fix whitespace 2016-04-11 14:44:51 -04:00
timezone Suppress compiler warning. 2016-04-02 13:49:17 -04:00
tools Make oldSnapshotControl a pointer to a volatile structure 2016-04-11 15:43:52 -05:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
DEVELOPERS
Makefile Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
Makefile.global.in Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:26 -04:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00