Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit229bffe

Browse files
committed
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.
1 parent075ac80 commit229bffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/pg_lzcompress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
*
167167
* Copyright (c) 1999-2009, PostgreSQL Global Development Group
168168
*
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 $
170170
* ----------
171171
*/
172172
#include"postgres.h"
@@ -211,7 +211,7 @@ typedef struct PGLZ_HistEntry
211211
*/
212212
staticconstPGLZ_Strategystrategy_default_data= {
213213
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 */
215215
25,/* Require 25% compression rate, or not worth it */
216216
1024,/* Give up if no compression in the first 1KB */
217217
128,/* Stop history lookup if a match of 128 bytes is found */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp