Skip to content

Commit eacdd5d

Browse files
committed
Clarify pg_dump -b documentation
The documentation around the -b/--blobs option to pg_dump seemed to imply that it might be possible to add blobs to a "schema-only" dump or similar. Clarify that blobs are data and therefore will only be included in dumps where data is being included, even when -b is used to request blobs be included. The -b option has been around since before 9.2, so back-patch to all supported branches. Discussion: https://postgr.es/m/20161119173316.GA13284@tamriel.snowman.net
1 parent 2cbb62d commit eacdd5d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ PostgreSQL documentation
132132
<para>
133133
Include large objects in the dump. This is the default behavior
134134
except when <option>--schema</>, <option>--table</>, or
135-
<option>--schema-only</> is specified, so the <option>-b</>
136-
switch is only useful to add large objects to selective dumps.
135+
<option>--schema-only</> is specified. The <option>-b</>
136+
switch is therefore only useful to add large objects to dumps
137+
where a specific schema or table has been requested. Note that
138+
blobs are considered data and therefore will be included when
139+
--data-only is used, but not when --schema-only is.
137140
</para>
138141
</listitem>
139142
</varlistentry>

0 commit comments

Comments
 (0)