postgresql/src/backend
Heikki Linnakangas dbdf9679d7 Use correct text domain for translating errcontext() messages.
errcontext() is typically used in an error context callback function, not
within an ereport() invocation like e.g errmsg and errdetail are. That means
that the message domain that the TEXTDOMAIN magic in ereport() determines
is not the right one for the errcontext() calls. The message domain needs to
be determined by the C file containing the errcontext() call, not the file
containing the ereport() call.

Fix by turning errcontext() into a macro that passes the TEXTDOMAIN to use
for the errcontext message. "errcontext" was used in a few places as a
variable or struct field name, I had to rename those out of the way, now
that errcontext is a macro.

We've had this problem all along, but this isn't doesn't seem worth
backporting. It's a fairly minor issue, and turning errcontext from a
function to a macro requires at least a recompile of any external code that
calls errcontext().
2012-11-12 17:07:29 +02:00
..
access Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
bootstrap Add context info to OAT_POST_CREATE security hook 2012-10-23 18:24:24 -03:00
catalog Don't try to use a unopened relation 2012-11-07 16:23:39 -03:00
commands Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
executor Throw error if expiring tuple is again updated or deleted. 2012-10-26 14:55:36 -05:00
foreign Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
lib Code review for inline-list patch. 2012-10-18 16:47:07 -04:00
libpq Remove unnecessary overhead in backend's large-object operations. 2012-10-09 16:38:00 -04:00
main Unify calling conventions for postgres/postmaster sub-main functions 2012-06-25 21:30:12 +03:00
nodes Fix planning of non-strict equivalence clauses above outer joins. 2012-10-18 12:30:10 -04:00
optimizer Rename ResolveNew() to ReplaceVarsFromTargetList(), and tweak its API. 2012-11-08 16:52:49 -05:00
parser Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Fix WaitLatch() to return promptly when the requested timeout expires. 2012-11-08 20:04:48 -05:00
postmaster Remove unnecessary "head" arguments from some dlist/slist functions. 2012-10-18 19:04:20 -04:00
regex Prevent corner-case core dump in rfree(). 2012-07-15 13:27:54 -04:00
replication Make the streaming replication protocol messages architecture-independent. 2012-11-07 19:09:13 +02:00
rewrite Rename ResolveNew() to ReplaceVarsFromTargetList(), and tweak its API. 2012-11-08 16:52:49 -05:00
snowball Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
storage Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
tcop Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE correctly. 2012-10-19 18:33:45 -04:00
tsearch Fix logical errors in tsquery selectivity estimation for prefix queries. 2012-09-11 21:23:20 -04:00
utils Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:06 -04:00
nls.mk Sort file list when creating gettext-files 2011-12-27 20:20:56 +02:00