From 64aea1ebc70dc597b79e2f7f4451472510a1e9bf Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 28 Nov 2011 13:13:42 +0100 Subject: Add libpq connection option to disable SSL compression This can be used to remove the overhead of SSL compression on fast networks. Laurenz Albe --- doc/src/sgml/libpq.sgml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'doc/src') 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, + + sslcompression + + + If set to 1 (default), data sent over SSL connections will be + compressed (this requires OpenSSL version + 0.9.8 or later). + If set to 0, compression will be disabled (this requires + OpenSSL 1.0.0 or later). + This parameter is ignored if a connection without SSL is made, + or if the version of OpenSSL used does not support + it. + + + 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. + + + + sslcert @@ -6308,6 +6330,16 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough) + + + + PGSSLCOMPRESSION + + PGSSLCOMPRESSION behaves the same as the connection parameter. + + + -- cgit v1.2.3