doc: pg_restore --filter refers to nonexistent --indexes option

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

doc: pg_restore --filter refers to nonexistent --indexes option

От:
Taras Kloba <taras.kloba@gmail.com>
Дата:
Вложения:
Hi hackers,

In the pg_restore reference page, the description of the "index"
keyword for --filter says that it "works like the -I/--indexes
option", but the long option is --index:

  $ pg_restore --indexes=t_a_idx -f - v.dump
  pg_restore: unrecognized option '--indexes=t_a_idx'

  $ pg_restore --index=t_a_idx -f - v.dump
  CREATE INDEX t_a_idx ON public.t USING btree (a);

A filter file containing "include index t_a_idx" gives the same result
as --index, as intended. The attached one-line patch fixes the option
name.

The mistake dates from commit a5cf808be55, which added --filter in
v17, so the patch could be back-patched to 17. It applies cleanly to
REL_18_STABLE and REL_19_STABLE; on REL_17_STABLE the option list is
ordered differently, so a cherry-pick conflicts, but "git am" works.
I also have a version made against REL_17_STABLE if that's easier.

Regards,
Taras Kloba

Re: doc: pg_restore --filter refers to nonexistent --indexes option

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 26 Oct 2026, at 18:53, Taras Kloba  wrote:

> In the pg_restore reference page, the description of the "index"
> keyword for --filter says that it "works like the -I/--indexes
> option", but the long option is --index:

Thanks for the report and patch, pushed and backpatched through 17.

--
Daniel Gustafsson



FAQ