[PATCH] doc: Fix pg_combinebackup's description of --sync-method

Поиск
Список
Период
Сортировка
Искать

[PATCH] doc: Fix pg_combinebackup's description of --sync-method

От:
Raja Sai pranav <rajasaipranav0@gmail.com>
Дата:
Вложения:
Hi,

The --sync-method entry on the pg_combinebackup reference page was copied from pg_basebackup and still says "When the plain format is used" twice, but pg_combinebackup has no format option: it always writes a plain data directory. It also says the "backup directory" is synchronized, which is ambiguous for a tool whose inputs are backup directories; what it syncs is the output directory (sync_pgdata() on opt.output), always following the WAL directory and tablespace symbolic links.

The attached patch drops the two references to the plain format and says "output directory". The text is the same on REL_17_STABLE and REL_18_STABLE, and the patch applies to both; the docs build and validate.

Regards,
Sai Pranav

Re: [PATCH] doc: Fix pg_combinebackup's description of --sync-method

От:
Fujii Masao <masao.fujii@gmail.com>
Дата:
On Thu, Nov 5, 2026 at 2:43 AM Raja Sai pranav  wrote:
> The --sync-method entry on the pg_combinebackup reference page was copied from pg_basebackup and still says "When the plain format is used" twice

Thanks for the report and patch! LGTM. Barring any objections, I'll commit it.

BTW, I also wonder if the following description in the Environment section was
copied from elsewhere and is incorrect. AFAIK, pg_combinebackup neither uses
nor links against libpq. Should we remove it? Or am I missing something?

    This utility, like most other PostgreSQL utilities, uses the environment
    variables supported by libpq (see Section 32.14).

Regards,

-- 
Fujii Masao


Re: [PATCH] doc: Fix pg_combinebackup's description of --sync-method

От:
Raja Sai pranav <rajasaipranav0@gmail.com>
Дата:
Вложения:

Hi Fujii,

Thanks! Glad the --sync-method fix looks good.

You're right about the libpq note. pg_combinebackup doesn't connect to a server; it only reads local backup directories. In meson its dependencies are just [frontend_code] (pg_basebackup, which does use libpq, lists libpq explicitly), it links no -lpq, and no source file includes libpq-fe.h or calls any PQ function. So the libpq environment variables don't apply to it, and the note looks like it was copied from pg_basebackup. (The Makefile still adds -I$(libpq_srcdir) to CPPFLAGS, which also appears to be vestigial, but that's a separate build nit.)

The attached patch removes that paragraph; the PG_COLOR note below is unaffected, and the docs still build. It applies to master, REL_18 and REL_17.

Regards,
Sai Pranav

On Thu, Nov 5, 2026 at 5:33 AM Fujii Masao <masao.fujii@gmail.com> wrote:
On Thu, Nov 5, 2026 at 2:43 AM Raja Sai pranav <rajasaipranav0@gmail.com> wrote:
> The --sync-method entry on the pg_combinebackup reference page was copied from pg_basebackup and still says "When the plain format is used" twice

Thanks for the report and patch! LGTM. Barring any objections, I'll commit it.

BTW, I also wonder if the following description in the Environment section was
copied from elsewhere and is incorrect. AFAIK, pg_combinebackup neither uses
nor links against libpq. Should we remove it? Or am I missing something?

    This utility, like most other PostgreSQL utilities, uses the environment
    variables supported by libpq (see Section 32.14).

Regards,

--
Fujii Masao

Re: [PATCH] doc: Fix pg_combinebackup's description of --sync-method

От:
Fujii Masao <masao.fujii@gmail.com>
Дата:
On Fri, Nov 6, 2026 at 2:55 AM Raja Sai pranav  wrote:
> The attached patch removes that paragraph; the PG_COLOR note below is unaffected, and the docs still build. It applies to master, REL_18 and REL_17.

I've pushed both your patches. Thanks!

Regards,

-- 
Fujii Masao


FAQ