Report exit code from external recovery commands properly
Peter Eisentraut <peter_e@gmx.net>
Report exit code from external recovery commands properly When an external recovery command such as restore_command or archive_cleanup_command fails, report the exit code properly, distinguishing signals and normal exists, using the existing wait_result_to_str() facility, instead of just reporting the return value from system(). Reviewed-by: Peter Geoghegan <pg@heroku.com>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlogarchive.c | modified | +6 −5 |