From: Tom Lane Date: Tue, 6 Jan 2009 15:51:38 +0000 (+0000) Subject: Revert the default toast compression strategy to the former behavior X-Git-Tag: recoveryinfrav9~117 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=afc7f427ee05a42165beb0221dd414fe76fa8ce1;p=users%2Fsimon%2Fpostgres.git Revert the default toast compression strategy to the former behavior where there's no limit on the size of datum we'll try to compress. Other 8.4 tweaks to the behavior remain in place. Per discussion. --- diff --git a/src/backend/utils/adt/pg_lzcompress.c b/src/backend/utils/adt/pg_lzcompress.c index 7400c0b90d..60a69cd69f 100644 --- a/src/backend/utils/adt/pg_lzcompress.c +++ b/src/backend/utils/adt/pg_lzcompress.c @@ -211,7 +211,7 @@ typedef struct PGLZ_HistEntry */ static const PGLZ_Strategy strategy_default_data = { 32, /* Data chunks less than 32 bytes are not compressed */ - 1024 * 1024, /* Data chunks over 1MB are not compressed either */ + INT_MAX, /* No upper limit on what we'll try to compress */ 25, /* Require 25% compression rate, or not worth it */ 1024, /* Give up if no compression in the first 1KB */ 128, /* Stop history lookup if a match of 128 bytes is found */