Re: write_pipe_chunks patch messes up early error message output - Mailing list pgsql-hackers

From Tom Lane
Subject Re: write_pipe_chunks patch messes up early error message output
Date
Msg-id 12368.1184596099@sss.pgh.pa.us
Whole thread Raw
In response to Re: write_pipe_chunks patch messes up early error message output  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: write_pipe_chunks patch messes up early error message output  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> I think offhand that the correct semantics of the flag are "we have
>> redirected our original stderr into a pipe for syslogger",

> We could expose syslogger's redirection_done flag, which I think has the 
> semantics you want.

Yeah, that would work.  You'd have to get rid of the current ad-hoc
method by which it is propagated to the syslogger child process
(EXEC_BACKEND case), because now it will have to be propagated to all
children; so postmaster.c should handle it in BackendParameters.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Dealing with dangling index pointers
Next
From: Tom Lane
Date:
Subject: Re: Dealing with dangling index pointers