postgresql/src/include/common
Robert Haas 51c0d186d9 Allow parallel zstd compression when taking a base backup.
libzstd allows transparent parallel compression just by setting
an option when creating the compression context, so permit that
for both client and server-side backup compression. To use this,
use something like pg_basebackup --compress WHERE-zstd:workers=N
where WHERE is "client" or "server" and N is an integer.

When compression is performed on the server side, this will spawn
threads inside the PostgreSQL backend. While there is almost no
PostgreSQL server code which is thread-safe, the threads here are used
internally by libzstd and touch only data structures controlled by
libzstd.

Patch by me, based in part on earlier work by Dipesh Pandit
and Jeevan Ladhe. Reviewed by Justin Pryzby.

Discussion: http://postgr.es/m/CA+Tgmobj6u-nWF-j=FemygUhobhryLxf9h-wJN7W-2rSsseHNA@mail.gmail.com
2022-03-30 09:41:26 -04:00
..
archive.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
backup_compression.h Allow parallel zstd compression when taking a base backup. 2022-03-30 09:41:26 -04:00
base64.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
checksum_helper.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
config_info.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
connect.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
controldata_utils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
cryptohash.h Improve error handling of cryptohash computations 2022-01-11 09:55:16 +09:00
fe_memutils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
file_perm.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
file_utils.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
hashfn.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
hmac.h Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
int.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
int128.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
ip.h Remove IS_AF_UNIX macro 2022-02-15 10:16:34 +01:00
jsonapi.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
keywords.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
kwlookup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
link-canary.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
logging.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
md5.h Improve error handling of cryptohash computations 2022-01-11 09:55:16 +09:00
openssl.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pg_lzcompress.h Optimize partial TOAST decompression 2019-10-01 14:28:28 +02:00
pg_prng.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
relpath.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
restricted_token.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
saslprep.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
scram-common.h Improve error handling of HMAC computations 2022-01-13 16:17:21 +09:00
sha1.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
sha2.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
shortest_dec.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
string.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
unicode_combining_table.h Update Unicode data to Unicode 14.0.0 2021-09-15 08:16:44 +02:00
unicode_east_asian_fw_table.h Update Unicode data to Unicode 14.0.0 2021-09-15 08:16:44 +02:00
unicode_norm.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
unicode_norm_hashfunc.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
unicode_norm_table.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
unicode_normprops_table.h Update Unicode data to Unicode 14.0.0 2021-09-15 08:16:44 +02:00
username.h Update copyright for 2022 2022-01-07 19:04:57 -05:00