postgres.git / summary / log / commit / refs

commit    f84e2ed246d20c5bd772f1d1c1fba85faf5a144e
Author:   Daniel Gustafsson <dgustafsson@postgresql.org>
Date:     Fri Sep 30 10:03:48 2022 +0000
First released in: 16.0, 10.23, 11.18, 12.13, 13.9, 14.6, 15.0

    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


doc/src/sgml/libpq.sgml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 4c16f75b350..bc68c4f616f 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -2254,9 +2254,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> [parent: 86f2ee2e2731]