pgsql: pg_restore: Fix wrong descriptions of --with-{schema,data,statis

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_restore: Fix wrong descriptions of --with-{schema,data,statis
Date: 2025-06-12 14:26:16
Message-ID: E1uPisi-001KPo-1d@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_restore: Fix wrong descriptions of --with-{schema,data,statistics} options.

Commit bde2fb797aa added the --with-schema, --with-data, and --with-statistics
options to pg_restore. These options control whether to restore schema, data,
or statistics if present in the archive. However, the help message and
documentation incorrectly described them as affecting what gets dumped.

This commit corrects those descriptions to clarify that the options control
restoration, not dumping.

Bug: #18952
Reported-by: TAKATSUKA Haruka <harukat(at)sraoss(dot)co(dot)jp>
Author: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Reviewed-by: TAKATSUKA Haruka <harukat(at)sraoss(dot)co(dot)jp>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/18952-be40a620f8b1e755@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/84914e964b447a63c5208ca2ec11ec3abfda0879

Modified Files
--------------
doc/src/sgml/ref/pg_restore.sgml | 9 ++++++---
src/bin/pg_dump/pg_restore.c | 6 +++---
2 files changed, 9 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Christoph Berg 2025-06-12 21:16:19 Re: pgsql: Introduce pg_shmem_allocations_numa view
Previous Message Álvaro Herrera 2025-06-12 12:22:13 pgsql: Fix squashing algorithm for query texts