Re: get current log file - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: get current log file
Date
Msg-id 56D068EB.4080602@timbira.com.br
Whole thread Raw
In response to Re: get current log file  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: get current log file
List pgsql-hackers
On 26-02-2016 11:50, Tom Lane wrote:
> 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)?
> 
Those are good concerns. Also, we already have emit_log_hook that could
grab server log messages. A small extension using the hook (there are
some out there) could be use with a log consuming tool.


--   Euler Taveira                   Timbira - http://www.timbira.com.br/  PostgreSQL: Consultoria, Desenvolvimento,
Suporte24x7 e Treinamento
 



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: get current log file
Next
From: Tom Lane
Date:
Subject: Re: get current log file