mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Simplify options in pg_dump and pg_restore.
Remove redundant options --with-data and --with-schema, and rename --with-statistics to just --statistics. Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/f379d0aeefe8effe13302a436bc28f549f09e924.camel@j-davis.com Backpatch-through: 18
This commit is contained in:
@@ -1354,6 +1354,15 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump statistics.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics-only</option></term>
|
||||
<listitem>
|
||||
@@ -1440,33 +1449,6 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-data</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump data. This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-schema</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump schema (data definitions). This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump statistics.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-?</option></term>
|
||||
<term><option>--help</option></term>
|
||||
@@ -1682,7 +1664,7 @@ CREATE DATABASE foo WITH TEMPLATE template0;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If <option>--with-statistics</option> is specified,
|
||||
If <option>--statistics</option> is specified,
|
||||
<command>pg_dump</command> will include most optimizer statistics in the
|
||||
resulting dump file. However, some statistics may not be included, such as
|
||||
those created explicitly with <xref linkend="sql-createstatistics"/> or
|
||||
|
@@ -605,6 +605,15 @@ exclude database <replaceable class="parameter">PATTERN</replaceable>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump statistics.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics-only</option></term>
|
||||
<listitem>
|
||||
@@ -640,33 +649,6 @@ exclude database <replaceable class="parameter">PATTERN</replaceable>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-data</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump data. This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-schema</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump schema (data definitions). This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Dump statistics.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-?</option></term>
|
||||
<term><option>--help</option></term>
|
||||
@@ -878,7 +860,7 @@ exclude database <replaceable class="parameter">PATTERN</replaceable>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If <option>--with-statistics</option> is specified,
|
||||
If <option>--statistics</option> is specified,
|
||||
<command>pg_dumpall</command> will include most optimizer statistics in the
|
||||
resulting dump file. However, some statistics may not be included, such as
|
||||
those created explicitly with <xref linkend="sql-createstatistics"/> or
|
||||
|
@@ -815,6 +815,16 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Output commands to restore statistics, if the archive contains them.
|
||||
This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--statistics-only</option></term>
|
||||
<listitem>
|
||||
@@ -873,36 +883,6 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-data</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Output commands to restore data, if the archive contains them.
|
||||
This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-schema</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Output commands to restore schema (data definitions), if the archive
|
||||
contains them. This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--with-statistics</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Output commands to restore statistics, if the archive contains them.
|
||||
This is the default.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-?</option></term>
|
||||
<term><option>--help</option></term>
|
||||
|
Reference in New Issue
Block a user