diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-11-28 13:13:42 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-11-28 13:13:42 +0100 |
commit | 64aea1ebc70dc597b79e2f7f4451472510a1e9bf (patch) | |
tree | 3cb08879f2083258aa694fe981d56dd30d44349b /doc/src | |
parent | dd3bab5fd74db009c946278bb314c8458a2fef11 (diff) | |
download | postgresql-64aea1ebc70dc597b79e2f7f4451472510a1e9bf.tar.gz postgresql-64aea1ebc70dc597b79e2f7f4451472510a1e9bf.zip |
Add libpq connection option to disable SSL compression
This can be used to remove the overhead of SSL compression on
fast networks.
Laurenz Albe
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 3d5f98ba2a6..252ff8cc855 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -494,6 +494,28 @@ PGconn *PQconnectdbParams(const char * const *keywords, </listitem> </varlistentry> + <varlistentry id="libpq-connect-sslcompression" xreflabel="sslcompression"> + <term><literal>sslcompression</literal></term> + <listitem> + <para> + If set to 1 (default), data sent over SSL connections will be + compressed (this requires <productname>OpenSSL</> version + 0.9.8 or later). + If set to 0, compression will be disabled (this requires + <productname>OpenSSL</> 1.0.0 or later). + This parameter is ignored if a connection without SSL is made, + or if the version of <productname>OpenSSL</> used does not support + it. + </para> + <para> + Compression uses CPU time, but can improve throughput if + the network is the bottleneck. + Disabling compression can improve response time and throughput + if CPU performance is the limiting factor. + </para> + </listitem> + </varlistentry> + <varlistentry id="libpq-connect-sslcert" xreflabel="sslcert"> <term><literal>sslcert</literal></term> <listitem> @@ -6311,6 +6333,16 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough) <listitem> <para> <indexterm> + <primary><envar>PGSSLCOMPRESSION</envar></primary> + </indexterm> + <envar>PGSSLCOMPRESSION</envar> behaves the same as the <xref + linkend="libpq-connect-sslcompression"> connection parameter. + </para> + </listitem> + + <listitem> + <para> + <indexterm> <primary><envar>PGSSLCERT</envar></primary> </indexterm> <envar>PGSSLCERT</envar> behaves the same as the <xref |