On Mon, 2007-12-10 at 18:27 +0100, Peter Eisentraut wrote: > Failures of archive_command calls report a confusing exit status such as: > > LOG: archive command "cp 'pg_xlog/000000010000000000000000' > '/nonexistent/000000010000000000000000'" failed: return code 256 > > The actual return code is 1; it neglects to apply WEXITSTATUS().
Yes, you're right. > I figured it would make sense if pgarch.c used the same mechanism that > postmaster.c uses to report the various variants of regular and signal > exits. OK, you could sell me on that. How will you get rid of (PID = 0)? Maybe it would be better to do that on two lines: LOG: archive command "............." failed FATAL: archive_command was terminated by signal ... -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq