aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2023-03-01 16:08:33 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2023-03-01 16:11:38 +0100
commit6095069b40d7f01d5e7771d23b18d65dc029fc0d (patch)
treee24aadfc97f0d6ad4f824aaccf489e2498c6daa5 /src
parent34ce11437497fbbdd44f26d6f1cc9d40f84da679 (diff)
downloadpostgresql-6095069b40d7f01d5e7771d23b18d65dc029fc0d.tar.gz
postgresql-6095069b40d7f01d5e7771d23b18d65dc029fc0d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/compress_io.h2
-rw-r--r--src/bin/pg_dump/compress_lz4.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/compress_io.h b/src/bin/pg_dump/compress_io.h
index bbde2693915..cdb15951ea9 100644
--- a/src/bin/pg_dump/compress_io.h
+++ b/src/bin/pg_dump/compress_io.h
@@ -172,7 +172,7 @@ struct CompressFileHandle
extern CompressFileHandle *InitCompressFileHandle(const pg_compress_specification compression_spec);
/*
- * Initialize a compress file stream. Deffer the compression algorithm
+ * Initialize a compress file stream. Infer the compression algorithm
* from 'path', either by examining its suffix or by appending the supported
* suffixes in 'path'.
*/
diff --git a/src/bin/pg_dump/compress_lz4.c b/src/bin/pg_dump/compress_lz4.c
index fe1014e6e77..63e794cdc68 100644
--- a/src/bin/pg_dump/compress_lz4.c
+++ b/src/bin/pg_dump/compress_lz4.c
@@ -161,8 +161,8 @@ typedef struct LZ4File
} LZ4File;
/*
- * LZ4 equivalent to feof() or gzeof(). The end of file is reached if there
- * is no decompressed output in the overflow buffer and the end of the file
+ * LZ4 equivalent to feof() or gzeof(). Return true iff there is no
+ * decompressed output in the overflow buffer and the end of the backing file
* is reached.
*/
static int