Skip to content

Commit 6095069

Browse files
committed
Improve wording in pg_dump compression docs
A couple minor corrections in pg_dump comments and docs, related to the recently introduced compression API. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/20230227044910.GO1653@telsasoft.com
1 parent 34ce114 commit 6095069

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ PostgreSQL documentation
331331
can read. A directory format archive can be manipulated with
332332
standard Unix tools; for example, files in an uncompressed archive
333333
can be compressed with the <application>gzip</application> or
334-
<application>lz4</application>tool.
334+
<application>lz4</application> tools.
335335
This format is compressed by default using <literal>gzip</literal>
336336
and also supports parallel dumps.
337337
</para>
@@ -654,8 +654,8 @@ PostgreSQL documentation
654654
<listitem>
655655
<para>
656656
Specify the compression method and/or the compression level to use.
657-
The compression method can be set to <literal>gzip</literal> or
658-
<literal>lz4</literal> or <literal>none</literal> for no compression.
657+
The compression method can be set to <literal>gzip</literal>,
658+
<literal>lz4</literal>, or <literal>none</literal> for no compression.
659659
A compression detail string can optionally be specified. If the
660660
detail string is an integer, it specifies the compression level.
661661
Otherwise, it should be a comma-separated list of items, each of the

src/bin/pg_dump/compress_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct CompressFileHandle
172172
extern CompressFileHandle *InitCompressFileHandle(const pg_compress_specification compression_spec);
173173

174174
/*
175-
* Initialize a compress file stream. Deffer the compression algorithm
175+
* Initialize a compress file stream. Infer the compression algorithm
176176
* from 'path', either by examining its suffix or by appending the supported
177177
* suffixes in 'path'.
178178
*/

src/bin/pg_dump/compress_lz4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ typedef struct LZ4File
161161
} LZ4File;
162162

163163
/*
164-
* LZ4 equivalent to feof() or gzeof(). The end of file is reached if there
165-
* is no decompressed output in the overflow buffer and the end of the file
164+
* LZ4 equivalent to feof() or gzeof(). Return true iff there is no
165+
* decompressed output in the overflow buffer and the end of the backing file
166166
* is reached.
167167
*/
168168
static int

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy