Re: Set AUTOCOMMIT to on in script output by pg_dump
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Treat <rob@xzilla.net>
Cc: Shinya Kato <Shinya11.Kato@oss.nttdata.com>,
Yugo Nagata <nagata@sraoss.co.jp>,
"David G. Johnston" <david.g.johnston@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-01-17T20:11:10Z
Lists: pgsql-hackers
Robert Treat <rob@xzilla.net> writes: > suggested diffs attached, let me know if you would like a consolidated patch Sadly, the cfbot is now confused since it doesn't understand the idea of an incremental patch. Somebody please post a consolidated patch. For myself, I'd suggest writing the examples with -X not --no-psqlrc. -X is shorter, it's more likely to be what people would actually type, and it's not jarringly inconsistent with the adjacent use of -h and other short-form switches. We can write the added paragraphs like It is generally recommended to use the <option>-X</option> (<option>--no-psqlrc</option>) option when restoring a database ... to provide clarity about what the switch does. regards, tom lane
Commits
-
Doc: recommend "psql -X" for restoring pg_dump scripts.
- d83a108c10a3 18.0 landed
- c768f54a25a4 15.11 landed
- aaa0f061936a 13.19 landed
- 76601c0c885a 17.3 landed
- 53771e44df81 16.7 landed
- 4106942f004f 14.16 landed