Re: [PATCH] backup: Fix trivial typo and error message issues - Mailing list pgsql-hackers

From Aditya Gollamudi
Subject Re: [PATCH] backup: Fix trivial typo and error message issues
Date
Msg-id CAD-KL_GVWtMA70t+mW_JBWRUpnt7KqqwGF-PGO8ELgjqUfXpdA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] backup: Fix trivial typo and error message issues  (Steven Niu <niushiji@gmail.com>)
Responses Re: [PATCH] backup: Fix trivial typo and error message issues
List pgsql-hackers
On Thu, Jan 15, 2026 at 6:20 AM Steven Niu <niushiji@gmail.com> wrote:
From: zengman <zengman@halodbtech.com>
Sent: Thursday, January 15, 2026 21:02
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Subject: [PATCH] backup: Fix trivial typo and error message issues


Hi all,

I noticed two trivial issues in backup-related code:
1. backup_manifest.c: The timeline mismatch error message uses `starttli` instead of `endtli`.
2. basebackup_copy.c: There is a spelling error (sine → since) in the comment above the `PROGRESS_REPORT_BYTE_INTERVAL` macro.

```
--- a/src/backend/backup/backup_manifest.c
+++ b/src/backend/backup/backup_manifest.c
@@ -253,7 +253,7 @@ AddWALInfoToBackupManifest(backup_manifest_info *manifest, XLogRecPtr startptr,
                if (first_wal_range && endtli != entry->tli)
                        ereport(ERROR,
                                        errmsg("expected end timeline %u but found timeline %u",
-                                                  starttli, entry->tli));
+                                                  endtli, entry->tli));
```

```
- * So we only check it after the number of bytes sine the last check reaches
+ * So we only check it after the number of bytes since the last check reaches
```

--
Regards,
Man Zeng
www.openhalo.org


________________________________________

Nice catch! Agree that the expected end timeline should be endtli instead of starttli per the comments above the code.

And the "sine" is obviously a typo.

Regards,
Steven

Patch applies cleanly on current master and builds without issues!

I ran make check successfully. I agree that endtli makes more sense here, and thanks for fixing the typo.

Note: I wasn’t able to get make installcheck to run cleanly due to local environment issues, which appear unrelated to this patch.

- Adi Gollamudi

 

pgsql-hackers by date:

Previous
From: Kirill Reshke
Date:
Subject: Re: Cleanup palloc'd structs on soft error path in `record_in`
Next
From: KAZAR Ayoub
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD