Fix errorhandling for reading from a pipe
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 8 Mar 2024 21:53:06 +0000 (22:53 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 8 Mar 2024 21:53:06 +0000 (22:53 +0100)
commitbe41a9b0380778a07386208afbf3f41ba7286cf3
treec1a138b8147fa2c45c7bf855b6eecda1be825314
parent6929e133b309d5d4568b5ed25b136935f63be618
Fix errorhandling for reading from a pipe

When reading a line from a pipe failed on no data being read, the
errorhandling was erroneously logging with %m even thoug no error
description is available for %m to print.  This flaw accidentally
introduced in 5c7038d70bb.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/baa34329-f431-46af-bf74-1a78fdc90e4f@eisentraut.org
src/common/exec.c