Re: BUG #11109: No Toast compression on JSON, JSONB columns - Mailing list pgsql-bugs

From Larry White
Subject Re: BUG #11109: No Toast compression on JSON, JSONB columns
Date
Msg-id CAMdbzVgJ3fy6hfZZZkiAxF_rsFLCL522dfiefCz7shoDj8+=jA@mail.gmail.com
Whole thread Raw
In response to BUG #11109: No Toast compression on JSON, JSONB columns  (ljw1001@gmail.com)
List pgsql-bugs
I looked into this a bit more.  I confirmed that in addition to the Text
type, the XML type also compresses large files.  With a 2MB XML file, I get
the following results:

Storage               Toast Table size
EXTERNAL              2392 KB
EXTENDED               312 KB

However, I withdraw the earlier speculation about when the issue occurs. It
clearly stops compressing files that are 'too large', but I'm not certain
what the trigger is. It may be related to the PGLZ_Strategy struct, which
contains a max_input_size value, or to some other factor.

Best regards,

larrry

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fwd: Re: Compile fails on AIX 6.1
Next
From: Rainer Tammer
Date:
Subject: Re: Fwd: Re: Compile fails on AIX 6.1