postgresql/src
Tom Lane f73b2bbbdc Fix poorly thought-through code from commit 5c3c3cd0a3.
It's not entirely clear to me whether PyString_AsString can return
null (looks like the answer might vary between Python 2 and 3).
But in any case, this code's attempt to cope with the possibility
was quite broken, because pstrdup() neither allows a null argument
nor ever returns a null.

Moreover, the code below this point assumes that "message" is a
palloc'd string, which would not be the case for a dgettext result.

Fix both problems by doing the pstrdup step separately.
2016-04-11 00:28:44 -04:00
..
backend Add comment about intentional fallthrough in switch. 2016-04-10 23:52:34 -04: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 Avoid the use of a separate spinlock to protect a LWLock's wait queue. 2016-04-10 20:12:32 -07: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 poorly thought-through code from commit 5c3c3cd0a3. 2016-04-11 00:28:44 -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 Move \crosstabview regression tests to a separate file 2016-04-08 23:42:24 -03:00
timezone Suppress compiler warning. 2016-04-02 13:49:17 -04:00
tools Allow Pin/UnpinBuffer to operate in a lockfree manner. 2016-04-10 20:12:32 -07:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04: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 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
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