]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Doc: document more incompatible pg_restore option pairs.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2026 18:06:50 +0000 (14:06 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2026 18:06:50 +0000 (14:06 -0400)
Most of the pairs of incompatible options (such as --file and --dbname)
are pretty obvious and need no explanation.  But it may not be obvious
that --single-transaction cannot be used together with --create or
multiple jobs, so let's mention that in the documentation.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Discussion: https://postgr.es/m/CAExHW5ti5igDwOOde6shgfS7JPtCY9gNrkB3xNr=FuGTYVDSjQ@mail.gmail.com

doc/src/sgml/ref/pg_restore.sgml

index c7ed947968c0a8d981253b8b3926e22cbc9be9eb..9d91c365214ec420da351858fc71baab30a6fd20 100644 (file)
@@ -190,6 +190,11 @@ PostgreSQL documentation
         <command>CREATE DATABASE</command> commands.  All data is restored into the
         database name that appears in the archive.
        </para>
+
+       <para>
+        This option cannot be used together
+        with <option>--single-transaction</option>.
+       </para>
       </listitem>
      </varlistentry>
 
@@ -600,6 +605,8 @@ PostgreSQL documentation
         ensures that either all the commands complete successfully, or no
         changes are applied. This option implies
         <option>--exit-on-error</option>.
+        It cannot be used together with <option>--create</option>, nor with
+        multiple jobs (<option>--jobs</option>).
        </para>
       </listitem>
      </varlistentry>