From: | Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: tuple data size and compression |
Date: | 2016-12-15 15:48:57 |
Message-ID: | CAK77FCQXpMSbNEqBu4vKCwgwhvs7UH-C9yYD5zfOGuFhUBPzTg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2016-12-15 16:23 GMT+01:00 Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>:
> 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
Hi,
definition: create table stato (id bigint, dati bytea);
then I populate the dati field with 100 bytes.
Pupillo
From | Date | Subject | |
---|---|---|---|
Next Message | Sameer Kumar | 2016-12-15 16:10:41 | [pgsql-GENERAL] AUTOVACUUM and Streaming Replication in v9.5 |
Previous Message | Francisco Olarte | 2016-12-15 15:46:59 | Re: pg_dump and quoted identifiers |