Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c)

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: use correct variable in error message in _allocAH function (pg_backup_archiver.c)
Date: 2025-04-15 08:02:51
Message-ID: 76267107-d45e-42af-8576-67b8424cc6ea@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 correct variable 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2025-04-15 08:36:46 Re: support create index on virtual generated column.
Previous Message Daniel Gustafsson 2025-04-15 07:45:32 Re: pg_combinebackup: correct code comment.