Re: pgsql: Support configurable eventlog application names on Windows

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: pgsql: Support configurable eventlog application names on Windows
Дата
Msg-id CAJKUy5jMmQZ0pF+03qsiGFwOrheWTp3V0tUXwypVTmPN8ZPF7A@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Support configurable eventlog application names on Windows  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: pgsql: Support configurable eventlog application names on Windows
Список pgsql-committers
On Tue, Oct 25, 2011 at 1:05 PM, Magnus Hagander <magnus@hagander.net> wrote:
> Support configurable eventlog application names on Windows
>
> This allows different instances to use the eventlog with different
> identifiers, by setting the event_source GUC, similar to how
> syslog_ident works.
>

if i uncomment event_source in a linux env i get this error:
"""
LOG:  unrecognized configuration parameter "event_source" in file
"/usr/local/pgsql/9.2/data/postgresql.conf" line 326
FATAL:  configuration file "/usr/local/pgsql/9.2/data/postgresql.conf"
contains errors
"""

this is because the definition of the GUC is inside an #ifdef, but the
error message is not very informative...
so, i tried to add a check_event_source (attached) and the error now
looks like this

"""
LOG:  22023: event_source can only be setted in windows builds
LOCATION:  call_string_check_hook, guc.c:8172
FATAL:  XX000: failed to initialize event_source to "PostgreSQL"
LOCATION:  InitializeOneGUCOption, guc.c:3959
"""

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Remove argument decoration that appears unsupported on mingw
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pgsql: Support configurable eventlog application names on Windows