Re: [GENERAL] tuple data size and compression - Mailing list pgsql-general

From Adrian Klaver
Subject Re: [GENERAL] tuple data size and compression
Date
Msg-id 1318a0d6-9b8f-f49b-8ada-af3f760b6b32@aklaver.com
Whole thread Raw
In response to [GENERAL] tuple data size and compression  (Tom DalPozzo <t.dalpozzo@gmail.com>)
Responses Re: [GENERAL] tuple data size and compression
List pgsql-general
On 12/15/2016 07:17 AM, Tom DalPozzo wrote:
> Hi,
> it's not clear to me when tuple data (max 1000 bytes total) get
> compressed on disk and when not.
> I tried with pg_column_size to find the tuple's size but I get ambiguous
> results.

What is the table definition?

Maybe this will help?:

https://www.postgresql.org/docs/9.5/static/storage-toast.html

> It seems to work but sometimes the tuples seem compressed and sometime not.
> I tried both with constant data and random bytes.
>
> Thanks
> Pupillo
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] pg_dump and quoted identifiers
Next
From: Francisco Olarte
Date:
Subject: Re: [GENERAL] pg_dump and quoted identifiers