@@ -558,25 +558,6 @@ PostgreSQL documentation
558
558
</listitem>
559
559
</varlistentry>
560
560
561
- <varlistentry>
562
- <term><option>--inserts</option></term>
563
- <listitem>
564
- <para>
565
- Dump data as <command>INSERT</command> commands (rather
566
- than <command>COPY</command>). This will make restoration very slow;
567
- it is mainly useful for making dumps that can be loaded into
568
- non-<productname>PostgreSQL</productname> databases.
569
- However, since this option generates a separate command for each row,
570
- an error in reloading a row causes only that row to be lost rather
571
- than the entire table contents.
572
- Note that
573
- the restore might fail altogether if you have rearranged column order.
574
- The <option>--column-inserts</option> option is safe against column
575
- order changes, though even slower.
576
- </para>
577
- </listitem>
578
- </varlistentry>
579
-
580
561
<varlistentry>
581
562
<term><option>--column-inserts</option></term>
582
563
<term><option>--attribute-inserts</option></term>
@@ -633,6 +614,25 @@ PostgreSQL documentation
633
614
</listitem>
634
615
</varlistentry>
635
616
617
+ <varlistentry>
618
+ <term><option>--inserts</option></term>
619
+ <listitem>
620
+ <para>
621
+ Dump data as <command>INSERT</command> commands (rather
622
+ than <command>COPY</command>). This will make restoration very slow;
623
+ it is mainly useful for making dumps that can be loaded into
624
+ non-<productname>PostgreSQL</productname> databases.
625
+ However, since this option generates a separate command for each row,
626
+ an error in reloading a row causes only that row to be lost rather
627
+ than the entire table contents.
628
+ Note that
629
+ the restore might fail altogether if you have rearranged column order.
630
+ The <option>--column-inserts</option> option is safe against column
631
+ order changes, though even slower.
632
+ </para>
633
+ </listitem>
634
+ </varlistentry>
635
+
636
636
<varlistentry>
637
637
<term><option>--lock-wait-timeout=<replaceable class="parameter">timeout</replaceable></option></term>
638
638
<listitem>
@@ -650,36 +650,10 @@ PostgreSQL documentation
650
650
</varlistentry>
651
651
652
652
<varlistentry>
653
- <term><option>--serializable-deferrable </option></term>
653
+ <term><option>--no-security-labels </option></term>
654
654
<listitem>
655
655
<para>
656
- Use a <literal>serializable</literal> transaction for the dump, to
657
- ensure that the snapshot used is consistent with later database
658
- states; but do this by waiting for a point in the transaction stream
659
- at which no anomalies can be present, so that there isn't a risk of
660
- the dump failing or causing other transactions to roll back with a
661
- <literal>serialization_failure</literal>. See <xref linkend="mvcc">
662
- for more information about transaction isolation and concurrency
663
- control.
664
- </para>
665
-
666
- <para>
667
- This option is not beneficial for a dump which is intended only for
668
- disaster recovery. It could be useful for a dump used to load a
669
- copy of the database for reporting or other read-only load sharing
670
- while the original database continues to be updated. Without it the
671
- dump may reflect a state which is not consistent with any serial
672
- execution of the transactions eventually committed. For example, if
673
- batch processing techniques are used, a batch may show as closed in
674
- the dump without all of the items which are in the batch appearing.
675
- </para>
676
-
677
- <para>
678
- This option will make no difference if there are no read-write
679
- transactions active when pg_dump is started. If read-write
680
- transactions are active, the start of the dump may be delayed for an
681
- indeterminate length of time. Once running, performance with or
682
- without the switch is the same.
656
+ Do not dump security labels.
683
657
</para>
684
658
</listitem>
685
659
</varlistentry>
@@ -702,47 +676,73 @@ PostgreSQL documentation
702
676
</varlistentry>
703
677
704
678
<varlistentry>
705
- <term><option>--no-security-labels </option></term>
679
+ <term><option>--no-unlogged-table-data </option></term>
706
680
<listitem>
707
681
<para>
708
- Do not dump security labels.
682
+ Do not dump the contents of unlogged tables. This option has no
683
+ effect on whether or not the table definitions (schema) are dumped;
684
+ it only suppresses dumping the table data.
709
685
</para>
710
686
</listitem>
711
687
</varlistentry>
712
688
713
689
<varlistentry>
714
- <term><option>--use-set-session-authorization </></term>
690
+ <term><option>--quote-all-identifiers </></term>
715
691
<listitem>
716
692
<para>
717
- Output SQL-standard <command>SET SESSION AUTHORIZATION</> commands
718
- instead of <command>ALTER OWNER</> commands to determine object
719
- ownership. This makes the dump more standards-compatible, but
720
- depending on the history of the objects in the dump, might not restore
721
- properly. Also, a dump using <command>SET SESSION AUTHORIZATION</>
722
- will certainly require superuser privileges to restore correctly,
723
- whereas <command>ALTER OWNER</> requires lesser privileges.
693
+ Force quoting of all identifiers. This may be useful when dumping a
694
+ database for migration to a future version that may have introduced
695
+ additional keywords.
724
696
</para>
725
697
</listitem>
726
698
</varlistentry>
727
699
728
700
<varlistentry>
729
- <term><option>--no-unlogged-table-data </option></term>
701
+ <term><option>--serializable-deferrable </option></term>
730
702
<listitem>
731
703
<para>
732
- Do not dump the contents of unlogged tables. This option has no
733
- effect on whether or not the table definitions (schema) are dumped;
734
- it only suppresses dumping the table data.
704
+ Use a <literal>serializable</literal> transaction for the dump, to
705
+ ensure that the snapshot used is consistent with later database
706
+ states; but do this by waiting for a point in the transaction stream
707
+ at which no anomalies can be present, so that there isn't a risk of
708
+ the dump failing or causing other transactions to roll back with a
709
+ <literal>serialization_failure</literal>. See <xref linkend="mvcc">
710
+ for more information about transaction isolation and concurrency
711
+ control.
712
+ </para>
713
+
714
+ <para>
715
+ This option is not beneficial for a dump which is intended only for
716
+ disaster recovery. It could be useful for a dump used to load a
717
+ copy of the database for reporting or other read-only load sharing
718
+ while the original database continues to be updated. Without it the
719
+ dump may reflect a state which is not consistent with any serial
720
+ execution of the transactions eventually committed. For example, if
721
+ batch processing techniques are used, a batch may show as closed in
722
+ the dump without all of the items which are in the batch appearing.
723
+ </para>
724
+
725
+ <para>
726
+ This option will make no difference if there are no read-write
727
+ transactions active when pg_dump is started. If read-write
728
+ transactions are active, the start of the dump may be delayed for an
729
+ indeterminate length of time. Once running, performance with or
730
+ without the switch is the same.
735
731
</para>
736
732
</listitem>
737
733
</varlistentry>
738
734
739
735
<varlistentry>
740
- <term><option>--quote-all-identifiers </></term>
736
+ <term><option>--use-set-session-authorization </></term>
741
737
<listitem>
742
738
<para>
743
- Force quoting of all identifiers. This may be useful when dumping a
744
- database for migration to a future version that may have introduced
745
- additional keywords.
739
+ Output SQL-standard <command>SET SESSION AUTHORIZATION</> commands
740
+ instead of <command>ALTER OWNER</> commands to determine object
741
+ ownership. This makes the dump more standards-compatible, but
742
+ depending on the history of the objects in the dump, might not restore
743
+ properly. Also, a dump using <command>SET SESSION AUTHORIZATION</>
744
+ will certainly require superuser privileges to restore correctly,
745
+ whereas <command>ALTER OWNER</> requires lesser privileges.
746
746
</para>
747
747
</listitem>
748
748
</varlistentry>
0 commit comments