From: | Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com> |
---|---|
To: | Shaun Thomas <shaun(dot)thomas(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, David Steele <david(at)pgmasters(dot)net> |
Subject: | Re: Re: A separate table level option to control compression |
Date: | 2019-03-21 13:40:25 |
Message-ID: | CABOikdMKWUk6v+rg2e_NmDPs-=CSvoq7jwMpG8TN3u3zim75KA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On Thu, Mar 21, 2019 at 3:10 AM Shaun Thomas <shaun(dot)thomas(at)2ndquadrant(dot)com>
wrote:
>
> I can't really speak for the discussion related to `storage.sgml`, but
> I based my investigation on the existing patch to `create_table.sgml`.
> About the only thing I would suggest there is to possibly tweak the
> wording.
>
> * "The compress_tuple_target ... " for example should probably read
> "The toast_tuple_target parameter ...".
> * "the (blocksize - header)" can drop "the".
> * "If the value is set to a value" redundant wording should be rephrased;
> "If the specified value is greater than toast_tuple_target, then
> we will substitute the current setting of toast_tuple_target instead."
> would work.
>
Thanks Shaun. Attached patch makes these adjustments.
> * I'd recommend a short discussion on what negative consequences can be
> expected by playing with this value. As an example in my tests, setting
> it very high may result in extremely sparse pages that could have an
> adverse impact on HOT updates.
>
Setting compress_tuple_target to a higher value won't be negative because
the toast_tuple_target is used for compression anyways when
compress_tuple_target is higher than toast_tuple_target. May be some
discussion in the paragraph related to toast_tuple_target can be added to
explain the negative impact of the high value.
I added a small discussion about negative effects of setting
compress_tuple_target lower though, per your suggestion.
Also added some details in storage.sgml as recommended by Sawada-san. Hope
this helps.
Thanks,
Pavan
--
Pavan Deolasee http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Attachment | Content-Type | Size |
---|---|---|
0001-Add-a-table-level-option-to-control-compression.patch | application/octet-stream | 18.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ramanarayana | 2019-03-21 13:40:50 | Re: Contribution to Perldoc for TestLib module in Postgres |
Previous Message | Thibaut | 2019-03-21 13:28:16 | Re: Problem with default partition pruning |