Skip to content

Commit 02a93e7

Browse files
committed
doc: Fix some gaps with the documentation related to LZ4
The upstream project is officially named "LZ4", and the documentation was confused with the option value that can be used with DDLs supporting this option, and the project name. Documentation related to the configure option --with-lz4 was missing, so add something for that. Author: Dilip Kumar, Michael Paquier Reviewed-by: Justin Pryzby Discussion: https://postgr.es/m/YJaOZQDXBVySq+Cc@paquier.xyz
1 parent 8dc3d68 commit 02a93e7

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

doc/src/sgml/catalogs.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@
13631363
The current compression method of the column. If it is an invalid
13641364
compression method (<literal>'\0'</literal>) then column data will not
13651365
be compressed. Otherwise, <literal>'p'</literal> = pglz compression or
1366-
<literal>'l'</literal> = lz4 compression.
1366+
<literal>'l'</literal> = <productname>LZ4</productname> compression.
13671367
</para></entry>
13681368
</row>
13691369

doc/src/sgml/config.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8321,9 +8321,9 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
83218321
<command>CREATE TABLE</command> statement can override this default
83228322
by specifying the <literal>COMPRESSION</literal> column option.
83238323

8324-
The supported compression methods are <literal>pglz</literal> and
8325-
(if configured at the time <productname>PostgreSQL</productname> was
8326-
built) <literal>lz4</literal>.
8324+
The supported compression methods are <literal>pglz</literal> and,
8325+
if <productname>PostgreSQL</productname> was compiled with
8326+
<literal>--with-lz4</literal>, <literal>lz4</literal>.
83278327
The default is <literal>pglz</literal>.
83288328
</para>
83298329
</listitem>

doc/src/sgml/installation.sgml

+19
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ su - postgres
266266
</para>
267267
</listitem>
268268

269+
<listitem>
270+
<para>
271+
You need <productname>LZ4</productname>, if you want to support
272+
compression of data with this method; see
273+
<xref linkend="guc-default-toast-compression"/>.
274+
</para>
275+
</listitem>
276+
269277
<listitem>
270278
<para>
271279
To build the <productname>PostgreSQL</productname> documentation,
@@ -966,6 +974,17 @@ build-postgresql:
966974
</listitem>
967975
</varlistentry>
968976

977+
<varlistentry>
978+
<term><option>--with-lz4</option></term>
979+
<listitem>
980+
<para>
981+
Build with <productname>LZ4</productname> compression support.
982+
This allows the use of <productname>LZ4</productname> for
983+
compression of table data.
984+
</para>
985+
</listitem>
986+
</varlistentry>
987+
969988
<varlistentry>
970989
<term><option>--with-ssl=<replaceable>LIBRARY</replaceable></option>
971990
<indexterm>

0 commit comments

Comments
 (0)