pgsql: Fix error reporting after ioctl() call with pg_upgrade --clone - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix error reporting after ioctl() call with pg_upgrade --clone
Date
Msg-id E1oIQ1y-002DxU-La@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix error reporting after ioctl() call with pg_upgrade --clone

errno was not reported correctly after attempting to clone a file,
leading to incorrect error reports.  While scanning through the code, I
have not noticed any similar mistakes.

Error introduced in 3a769d8.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20220731134135.GY15006@telsasoft.com
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8b1ec7d2953273501c5cea8185b6358dc7709eb5

Modified Files
--------------
src/bin/pg_upgrade/file.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: ci: remove minor version from freebsd image name
Next
From: Tom Lane
Date:
Subject: pgsql: Check maximum number of columns in function RTEs, too.