Re: syslog_line_prefix - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: syslog_line_prefix
Date
Msg-id 20090928192733.GF5269@alvh.no-ip.org
Whole thread Raw
In response to Re: syslog_line_prefix  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: syslog_line_prefix
List pgsql-hackers
Tom Lane escribió:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Tom Lane escribió:
> >> This is the same issue already raised with respect to syslog versus
> >> syslogger, ie, some people would rather lose log data than have the
> >> backends block waiting for it to be written.
> 
> > That could be made configurable; i.e. let the user choose whether to
> > lose messages or to make everybody wait.
> 
> Hmm, I guess I missed where you proposed an implementation that would
> support that?

syslog uses a nonblocking file descriptor without a retry loop to
implement their logic.  I see no reason we couldn't do that ourselves.
Mixing it with regular blocking code could turn out to be nontrivial,
but I don't think it's impossible.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: Using results from INSERT ... RETURNING
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] DefaultACLs