Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c) - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c)
Date
Msg-id 76267107-d45e-42af-8576-67b8424cc6ea@oss.nttdata.com
Whole thread Raw
In response to use correct variable in error message in _allocAH function (pg_backup_archiver.c)  (Mahendra Singh Thalor <mahi6run@gmail.com>)
Responses Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c)
Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c)
List pgsql-hackers

On 2025/04/15 7:21, Mahendra Singh Thalor wrote:
> Hi hackers,
> 
> In _allocAH function(pg_backup_archiver.c), we were using the *fmt* variable in switch case for *default case*, but
correctvariable is AH->format.
 
> 
> Here, I am attaching a patch for the same.

Thanks for the report and patch! It looks good to me.
Since this issue exists in the back branches,
the patch needs be back-patched to all supported versions.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION




pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: pg_combinebackup: correct code comment.
Next
From: jian he
Date:
Subject: Re: support create index on virtual generated column.