mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
pg_dump: Add a --load-via-partition-root option.
Rushabh Lathia, reviewed and somewhat revised by me. Testing by Rajkumar Raghuwanshi. Discussion: http://postgr.es/m/CAGPqQf0C1he087bz9xRBOGZBuESYz9X=Fp8Ca_g+TfHgAff75g@mail.gmail.com
This commit is contained in:
@ -888,6 +888,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--load-via-partition-root</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
When dumping a COPY or INSERT statement for a partitioned table,
|
||||
target the root of the partitioning hierarchy which contains it rather
|
||||
than the partition itself. This may be useful when reloading data on
|
||||
a server where rows do not always fall into the same partitions as
|
||||
they did on the original server. This could happen, for example, if
|
||||
the partitioning column is of type text and the two system have
|
||||
different definitions of the collation used to partition the data.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--section=<replaceable class="parameter">sectionname</replaceable></option></term>
|
||||
<listitem>
|
||||
|
@ -430,6 +430,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--load-via-partition-root</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
When dumping a COPY or INSERT statement for a partitioned table,
|
||||
target the root of the partitioning hierarchy which contains it rather
|
||||
than the partition itself. This may be useful when reloading data on
|
||||
a server where rows do not always fall into the same partitions as
|
||||
they did on the original server. This could happen, for example, if
|
||||
the partitioning column is of type text and the two system have
|
||||
different definitions of the collation used to partition the data.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--use-set-session-authorization</></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user