diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c new file mode 100644 index 4e8faa4..9e976a9 *** a/src/backend/libpq/be-secure.c --- b/src/backend/libpq/be-secure.c *************** initialize_SSL(void) *** 742,747 **** --- 742,754 ---- */ SSL_CTX_set_mode(SSL_context, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER); + #ifdef SSL_OP_NO_COMPRESSION + /* + * Disable OpenSSL's data compression in versions which support it. + */ + SSL_CTX_set_options(SSL_context, SSL_OP_NO_COMPRESSION); + #endif + /* * Load and verify server's certificate and private key */