pg_restore: Fix wrong descriptions of --with-{schema,data,statistics} options.
authorFujii Masao
Thu, 12 Jun 2025 14:25:21 +0000 (23:25 +0900)
committerFujii Masao
Thu, 12 Jun 2025 14:25:21 +0000 (23:25 +0900)
commit84914e964b447a63c5208ca2ec11ec3abfda0879
tree38d62810e987ed83ec875d23377e2fab2ed2afd6
parent0f65f3eec478db8ac4f217a608b4478fed023bac
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
Author: Fujii Masao 
Reviewed-by: TAKATSUKA Haruka
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/18952-be40a620f8b1e755@postgresql.org
doc/src/sgml/ref/pg_restore.sgml
src/bin/pg_dump/pg_restore.c