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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix error reporting after ioctl() call with pg_upgrade --clone
Date: 2022-08-01 07:40:03
Message-ID: E1oIQ1y-002DxZ-N9@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/523926dea97f360f1f785853eea49e4dc4a6e1e9

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-08-01 16:22:58 pgsql: Check maximum number of columns in function RTEs, too.
Previous Message Andres Freund 2022-08-01 01:56:20 pgsql: ci: remove minor version from freebsd image name