postgresql/src/backend/utils
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
..
adt Make the streaming replication protocol messages architecture-independent. 2012-11-07 19:09:13 +02:00
cache Further cleanup of catcache.c ilist changes. 2012-10-18 19:30:43 -04:00
error Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
fmgr Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
hash Fix hash_search to avoid corruption of the hash table on out-of-memory. 2012-10-19 15:24:03 -04:00
init Parse pg_ident.conf when it's loaded, keeping it in memory in parsed format. 2012-09-21 17:54:39 +03:00
mb Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
misc Improve replication connection timeouts. 2012-10-11 17:48:08 +03:00
mmgr Fix thinko in previous commit 2012-10-08 18:33:08 -03:00
resowner Split resowner.h 2012-08-28 18:02:07 -04:00
sort Add support for easily declaring static inline functions 2012-10-08 16:28:01 -03:00
time Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Code review for 64-bit-large-object patch. 2012-10-08 18:24:32 -04:00
Gen_dummy_probes.sed Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Gen_fmgrtab.pl Run updated copyright.pl on HEAD and 9.2 trees, updating the psql 2012-07-06 12:28:18 -04:00
generate-errcodes.pl Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Make group commit more effective. 2012-01-30 16:53:48 +02:00