Re: COPYable logs status

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: COPYable logs status
Дата
Msg-id 20070608134355.GF9071@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: COPYable logs status  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: COPYable logs status  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
> On Fri, Jun 08, 2007 at 08:31:54AM -0400, Andrew Dunstan wrote:
> > The situation with this patch is that I now have it in a state where I 
> > think it could be applied, but there is one blocker, namely that we do 
> > not have a way of preventing the interleaving of log messages from 
> > different backends, which leads to garbled logs. This is an existing 
> > issue about which we have had complaints, but it becomes critical for a 
> > facility the whole purpose of which is to provide logs in a format 
> > guaranteed to work with our COPY command.
> 
> The whole semantics of PIPEBUF should prevent garbling, as long as each
> write is a complete set of lines and no more than PIPEBUF bytes long.
> Have we determined the actual cause of the garbling?

No, that's the main problem -- but it has been reported to happen on
entries shorter than PIPE_BUF chars.

-- 
Alvaro Herrera                               http://www.PlanetPostgreSQL.org/
"La persona que no quería pecar / estaba obligada a sentarseen duras y empinadas sillas    / desprovistas, por ciertode
blandosatenuantes"                          (Patricio Vogel)
 


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: COPYable logs status
Следующее
От: Matthew O'Connor
Дата:
Сообщение: Re: Autovacuum launcher doesn't notice death of postmaster immediately