Re: Modifying TOAST_TUPLE_THRESHOLD and TOAST_TUPLE_TARGET?

From: Greg Stark <stark(at)enterprisedb(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Shadar <shauldar(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Modifying TOAST_TUPLE_THRESHOLD and TOAST_TUPLE_TARGET?
Date: 2009-06-11 21:20:55
Message-ID: 407d949e0906111420q767c54faycf44c773e9bc002c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jun 11, 2009 at 5:12 PM, Kevin
Grittner<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
>
> MAIN allows compression but discourages out-of-line storage.
> (Out-of-line storage will be performed only if the row is still too
> big after compression and out-of-line storage of EXTENDED and
> EXTERNAL columns.)

I had the impression the confusion was over the meaning of "too big"
rather than what "last resort" meant. So this doesn't seem any
clearer.

> It seems to me that MAIN might be a more useful option if it was more
> aggressive about avoiding out-of-line storage; perhaps only if the row
> doesn't fit by itself on a single page?  Does anyone else think so?

Yeah I think we're on the same page there. I do suspect the reason
this documentation is vague on the precise meanings of these options
is precisely because the author expected further tweaks of this nature
-- I don't know if this documentation has changed substantially since
toast was committed.

We've been talking about a number of ideas for making toast more
flexible but there are clearly an infinite number of permutations and
the trick will be figuring out how to present the useful ones without
making things too complicated for the user to control.

--
greg
http://mit.edu/~gsstark/resume.pdf

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2009-06-11 22:03:24 Re: Modifying TOAST_TUPLE_THRESHOLD and TOAST_TUPLE_TARGET?
Previous Message Tom Lane 2009-06-11 20:19:38 Re: Modifying TOAST_TUPLE_THRESHOLD and TOAST_TUPLE_TARGET?