mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add support for --no-table-access-method in pg_{dump,dumpall,restore}
The logic is similar to default_tablespace in some ways, so as no SET queries on default_table_access_method are generated before dumping or restoring an object (table or materialized view support table AMs) when specifying this new option. This option is useful to enforce the use of a default access method even if some tables included in a dump use an AM different than the system's default. There are already two cases in the TAP tests of pg_dump with a table and a materialized view that use a non-default table AM, and these are extended that the new option does not generate SET clauses on default_table_access_method. Author: Justin Pryzby Discussion: https://postgr.es/m/20211207153930.GR17618@telsasoft.com
This commit is contained in:
@ -931,6 +931,23 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-table-access-method</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Do not output commands to select table access methods.
|
||||
With this option, all objects will be created with whichever
|
||||
table access method is the default during restore.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
This option is ignored when emitting an archive (non-text) output
|
||||
file. For the archive formats, you can specify the option when you
|
||||
call <command>pg_restore</command>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-tablespaces</option></term>
|
||||
<listitem>
|
||||
|
@ -446,6 +446,17 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-table-access-method</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Do not output commands to select table access methods.
|
||||
With this option, all objects will be created with whichever
|
||||
table access method is the default during restore.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-tablespaces</option></term>
|
||||
<listitem>
|
||||
|
@ -649,6 +649,17 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-table-access-method</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Do not output commands to select table access methods.
|
||||
With this option, all objects will be created with whichever
|
||||
access method is the default during restore.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-tablespaces</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user