Re: get current log file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: get current log file
Дата
Msg-id 31969.1456498238@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: get current log file  (Euler Taveira <euler@timbira.com.br>)
Ответы Re: get current log file  (Euler Taveira <euler@timbira.com.br>)
Список pgsql-hackers
Euler Taveira <euler@timbira.com.br> writes:
> On 26-02-2016 08:03, Robert Haas wrote:
>> But there's one thing I'm slightly baffled about: why would you
>> actually need this?

> The use case I have in mind is consume log file by using a tool like
> logstash. In this case, logstash accepts patterns and you can also use
> syslog for it.

This needs to be explained a lot more clearly than it has been so far,
else we are going to reject this proposed feature as being more code and
more overhead than is justified.  Exactly why would you need a pointer to
the current log file, rather than just configuring whatever tool you use
to vacuum up everything in the pg_log directory?  Why would this use-case
not suffer from nasty race conditions (ie, what happens when current log
file changes immediately before or immediately after you look at the
pointer)?
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sanity checking for ./configure options?
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: get current log file