aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2022-09-30 12:03:48 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2022-09-30 12:03:48 +0200
commitd9102e456738e0dafcf080406b95192d591429eb (patch)
treee4bea8528fb5c71640b7779476c094c84d0ace99
parent994c5ceabe1eef6dd490bc74244f4b4dd69db2c9 (diff)
downloadpostgresql-d9102e456738e0dafcf080406b95192d591429eb.tar.gz
postgresql-d9102e456738e0dafcf080406b95192d591429eb.zip
doc: Fix PQsslAttribute docs for compression
The compression parameter to PQsslAttribute has never returned the compression method used, it has always returned "on" or "off since it was added in commit 91fa7b4719ac. Backpatch through v10. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/B9EC60EC-F665-47E8-A221-398C76E382C9@yesql.se Backpatch-through: v10
-rw-r--r--doc/src/sgml/libpq.sgml4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 861359b3ff7..379a29c0671 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -2374,9 +2374,7 @@ const char *PQsslAttribute(const PGconn *conn, const char *attribute_name);
<term><literal>compression</literal></term>
<listitem>
<para>
- If SSL compression is in use, returns the name of the compression
- algorithm, or "on" if compression is used but the algorithm is
- not known. If compression is not in use, returns "off".
+ Returns "on" if SSL compression is in use, else it returns "off".
</para>
</listitem>
</varlistentry>