pgsql: Fix handling of OpenSSL's SSL_clear_options

2019-12-05 Thread Michael Paquier
Fix handling of OpenSSL's SSL_clear_options This function is supported down to OpenSSL 0.9.8, which is the oldest version supported since 593d4e4 (from Postgres 10 onwards), and is used since e3bdb2d (from 11 onwards). It is defined as a macro from OpenSSL 0.9.8 to 1.0.2, and as a function in 1.1

pgsql: Fix handling of OpenSSL's SSL_clear_options

2019-12-05 Thread Michael Paquier
Fix handling of OpenSSL's SSL_clear_options This function is supported down to OpenSSL 0.9.8, which is the oldest version supported since 593d4e4 (from Postgres 10 onwards), and is used since e3bdb2d (from 11 onwards). It is defined as a macro from OpenSSL 0.9.8 to 1.0.2, and as a function in 1.1

pgsql: Fix handling of OpenSSL's SSL_clear_options

2019-12-05 Thread Michael Paquier
Fix handling of OpenSSL's SSL_clear_options This function is supported down to OpenSSL 0.9.8, which is the oldest version supported since 593d4e4 (from Postgres 10 onwards), and is used since e3bdb2d (from 11 onwards). It is defined as a macro from OpenSSL 0.9.8 to 1.0.2, and as a function in 1.1

pgsql: Improve some comments in pg_upgrade.c

2019-12-05 Thread Michael Paquier
Improve some comments in pg_upgrade.c When restoring database schemas on a new cluster, database "template1" is processed first, followed by all other databases in parallel, including "postgres". Both "postgres" and "template1" have some extra handling to propagate each one's properties, but comm

pgsql: Remove configure check for OpenSSL's SSL_get_current_compression

2019-12-05 Thread Michael Paquier
Remove configure check for OpenSSL's SSL_get_current_compression() This function has been added in OpenSSL 0.9.8, which is the oldest version supported on HEAD, so checking for it at configure time is useless. Both the frontend and backend code did not even bother to use it. Reported-by: Daniel

pgsql: pg_basebackup: Refactor code for reading COPY and tar data.

2019-12-05 Thread Robert Haas
pg_basebackup: Refactor code for reading COPY and tar data. Add a new function ReceiveCopyData that does just that, taking a callback as an argument to specify what should be done with each chunk as it is received. This allows a single copy of the logic to be shared between ReceiveTarFile and Rece

pgsql: Minor comment improvements for instrumentation.h

2019-12-05 Thread Robert Haas
Minor comment improvements for instrumentation.h Remove a duplicated word. Add "of" or "# of" in a couple places for clarity and consistency. Start comments with a lower case letter as we do elsewhere in this file. Rafia Sabih Branch -- master Details --- https://git.postgresql.org/pg/c