pgsql: Fix errorhandling for reading from a pipe

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix errorhandling for reading from a pipe
Date: 2024-03-08 22:34:34
Message-ID: E1riinS-002nNI-7K@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)eisentraut(dot)org>
Discussion: https://postgr.es/m/baa34329-f431-46af-bf74-1a78fdc90e4f@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/be41a9b0380778a07386208afbf3f41ba7286cf3

Modified Files
--------------
src/common/exec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2024-03-09 00:14:05 pgsql: Fix type signedness error in commit 5c40364dd6.
Previous Message Tom Lane 2024-03-08 17:07:44 pgsql: Improve WIN32 waiting logic in psql's \watch command.