Doc: recommend "psql -X" for restoring pg_dump scripts.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c768f54a25a431793ab17b7e64536c9360b96d8e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2025-01-25T17:42:05Z
Releases: 15.11
Doc: recommend "psql -X" for restoring pg_dump scripts.

This practice avoids possible problems caused by non-default psql
options, such as disabling AUTOCOMMIT.

Author: Shinya Kato <Shinya11.Kato@oss.nttdata.com>
Reviewed-by: Robert Treat <rob@xzilla.net>
Discussion: https://postgr.es/m/96ff23a5d858ff72ca8e823a014d16fe@oss.nttdata.com
Backpatch-through: 13

Files

PathChange+/−
doc/src/sgml/backup.sgml modified +14 −8
doc/src/sgml/ref/pg_dumpall.sgml modified +13 −2
doc/src/sgml/ref/pg_dump.sgml modified +9 −1

Documentation touched

Discussion