Re: tuple data size and compression

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: tuple data size and compression
Date: 2016-12-15 15:23:28
Message-ID: 1318a0d6-9b8f-f49b-8ada-af3f760b6b32@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Olarte 2016-12-15 15:46:59 Re: pg_dump and quoted identifiers
Previous Message Tom Lane 2016-12-15 15:20:26 Re: pg_dump and quoted identifiers