|
166 | 166 | *
|
167 | 167 | * Copyright (c) 1999-2009, PostgreSQL Global Development Group
|
168 | 168 | *
|
169 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.32 2009/01/01 17:23:49 momjian Exp $ |
| 169 | + * $PostgreSQL: pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.33 2009/01/06 15:51:38 tgl Exp $ |
170 | 170 | * ----------
|
171 | 171 | */
|
172 | 172 | #include"postgres.h"
|
@@ -211,7 +211,7 @@ typedef struct PGLZ_HistEntry
|
211 | 211 | */
|
212 | 212 | staticconstPGLZ_Strategystrategy_default_data= {
|
213 | 213 | 32,/* Data chunks less than 32 bytes are not compressed */
|
214 |
| -1024*1024,/*Data chunks over 1MB are not compressed either */ |
| 214 | +INT_MAX,/*No upper limit on what we'll try to compress */ |
215 | 215 | 25,/* Require 25% compression rate, or not worth it */
|
216 | 216 | 1024,/* Give up if no compression in the first 1KB */
|
217 | 217 | 128,/* Stop history lookup if a match of 128 bytes is found */
|
|