Annoying error messages in _dosmaperr

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Annoying error messages in _dosmaperr
Дата
Msg-id 20081015131201.95D3.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: Annoying error messages in _dosmaperr  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

I found that pg_resetxlog always prints the following message on Windows.
   mapped win32 error code 2 to 2

Can we supress this annoying message? It seems to come from _dosmaperr,
but the error "postmaster.pid is not found" is a *normal* situation
in pg_resetxlog.
   -> open("%s/postmaster.pid", O_RDONLY, 0)   -> pgwin32_open()   -> _dosmaperr()       #ifndef FRONTEND
ereport(DEBUG5,...);       #else           fprintf(stderr, _("mapped win32 error code %lu to %d"), e, errno);
#endif

DEBUG5 means the messages are completely non-critical. Therefore, client
programs also don't need to report them, no? If possible, I'd like to
remove the #else block (or all of them) from the above routine.

(On the other hand, "unrecognized win32 error code" part should be there.)

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bogus attribute-number range checks in spi.c
Следующее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: autovacuum and reloptions