From: Tom Lane Date: Thu, 16 Oct 2008 13:27:34 +0000 (+0000) Subject: Reduce chatter from _dosmaperr() when used in FRONTEND code. X-Git-Tag: REL9_0_0~3012 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0e3d5ad477a172c5cb8965ffc5c9298b0e86c466;p=pg-rex%2Fsyncrep.git Reduce chatter from _dosmaperr() when used in FRONTEND code. ITAGAKI Takahiro --- diff --git a/src/port/win32error.c b/src/port/win32error.c index aa779b9511..c9d3572051 100644 --- a/src/port/win32error.c +++ b/src/port/win32error.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/win32error.c,v 1.4 2008/01/01 19:46:00 momjian Exp $ + * $PostgreSQL: pgsql/src/port/win32error.c,v 1.5 2008/10/16 13:27:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -180,7 +180,7 @@ _dosmaperr(unsigned long e) ereport(DEBUG5, (errmsg_internal("mapped win32 error code %lu to %d", e, errno))); -#else +#elif FRONTEND_DEBUG fprintf(stderr, _("mapped win32 error code %lu to %d"), e, errno); #endif return;