gs_probackup: Multithread backup supports pglz compression

This commit is contained in:
wuyuechuan
2023-07-04 17:04:39 +08:00
parent 18d06c8f1e
commit bd912e5bf5
2 changed files with 2 additions and 5 deletions

View File

@ -252,8 +252,8 @@ const PGLZ_Strategy *const PGLZ_strategy_always = &strategy_always_data;
* Statically allocated work arrays for history
* ----------
*/
static int16 hist_start[PGLZ_MAX_HISTORY_LISTS];
static PGLZ_HistEntry hist_entries[PGLZ_HISTORY_SIZE + 1];
static THR_LOCAL int16 hist_start[PGLZ_MAX_HISTORY_LISTS];
static THR_LOCAL PGLZ_HistEntry hist_entries[PGLZ_HISTORY_SIZE + 1];
/*
* Element 0 in hist_entries is unused, and means 'invalid'. Likewise,

View File

@ -923,10 +923,7 @@ compress_init(void)
#ifndef HAVE_LIBZ
if (instance_config.compress_alg == ZLIB_COMPRESS)
elog(ERROR, "This build does not support zlib compression");
else
#endif
if (instance_config.compress_alg == PGLZ_COMPRESS && num_threads > 1)
elog(ERROR, "Multithread backup does not support pglz compression");
}
}