From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Lewis <mlewis@entrata.com>
Cc: Simon Riggs <simon.riggs@enterprisedb.com>
Cc: Ram Pratap Maurya <ram.maurya@lavainternational.in>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Manu Saxena <manu.saxena@lavainternational.in>
Subject: Re: Avg/max size of these JSON docs in Postgres
Date: Tue, 12 Oct 2021 14:14:46 -0400
Message-ID: <585459.1634062486@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHOFxGobn9REnhU0dd=yRvPQ5a_qj97GRr1vxCOdafOfUTjd+A@mail.gmail.com>
References: <KL1PR0601MB4433DFB74306A5F18BBB069FF0B69@KL1PR0601MB4433.apcprd06.prod.outlook.com>
<CANbhV-HQ+JpxhN8QrVbLBM3cUdzur43PFtvXSBCR3aLXjCQxWQ@mail.gmail.com>
<CAHOFxGobn9REnhU0dd=yRvPQ5a_qj97GRr1vxCOdafOfUTjd+A@mail.gmail.com>
Michael Lewis <mlewis@entrata.com> writes:
> Just to confirm- The compression associated with TOAST is only if the value
> can fit in line, right? Columns don't get stored out-of-line in a toast
> table as a compressed value as I read the documentation. I suppose that
> would make reads a bit crazy.
The default behavior is first to compress any large field value(s),
and then if the row is still too big, push them out-of-line in
compressed form. You can modify that strategy on a per-column
basis if need be, but I've seldom heard good reasons to.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, mlewis@entrata.com, simon.riggs@enterprisedb.com, ram.maurya@lavainternational.in, manu.saxena@lavainternational.in
Subject: Re: Avg/max size of these JSON docs in Postgres
In-Reply-To: <585459.1634062486@sss.pgh.pa.us>
References: <KL1PR0601MB4433DFB74306A5F18BBB069FF0B69@KL1PR0601MB4433.apcprd06.prod.outlook.com> <CANbhV-HQ+JpxhN8QrVbLBM3cUdzur43PFtvXSBCR3aLXjCQxWQ@mail.gmail.com> <CAHOFxGobn9REnhU0dd=yRvPQ5a_qj97GRr1vxCOdafOfUTjd+A@mail.gmail.com> <585459.1634062486@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox