Re: write_pipe_chunks patch messes up early error message output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: write_pipe_chunks patch messes up early error message output
Дата
Msg-id 24765.1184688526@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: write_pipe_chunks patch messes up early error message output  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: write_pipe_chunks patch messes up early error message output
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Or, looking at it another way, why would we ever want the syslogger to 
> use the chunking protocol at all?

Ah, I misunderstood you.  Yeah, I think you are right: if we are
special-casing the syslogger process anyway, then it need only have
these two behaviors:

not redirection_done: write to own stderr (not chunked) and directly to
file

redirection_done: write directly to file

One thing to watch out for is infinite recursion if the write-to-file
gets an error.  I don't remember if we have a defense against that
in there now, but we probably should.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: compiler warnings on the buildfarm
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: SSPI authentication