Re: update on TOAST status'

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: PostgreSQL HACKERS <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: update on TOAST status'
Date: 2000-07-07 01:58:34
Message-ID: 200007070158.VAA00414@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian wrote:
> > > - VACUUM doesn't propagate ANALYZE to TOAST tables.
> > > Statistics for them are needless because the toast access
> > > is allways hardcoded indexed.
> >
> > I don't think statistics are insignificant for TOASTed columns. If I
> > say col=3, the optimizer uses that information for estimating the number
> > of rows returned, and figuring out the type of join and order of join to
> > perform, not just for "use index, don't use index" decisions.
>
> Ask your boys to give you a training session for "reading"
> when they go to bed tonight - and greet them from the "police
> officer" :-)

Sure.

>
> I said "to TOAST tables", not "TOASTed columns".
>
> Their master tables will allways have the statistics,
> including those for toasted columns, if you ask for them via
> ANALYZE.
>
> In normal operation, noone would ever know if a TOAST table
> is accessed during his query - not even the planner or
> optimmizer. It's totally transparent and the only one
> accessing the TOAST tables is the toaster himself - and he
> knows what he does.
>

Oh, sure, got it. It is the toast table that doesn't need stats.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-07-07 02:04:00 Re: 2nd update on TOAST
Previous Message Bruce Momjian 2000-07-07 01:53:46 Re: Fix for pg_dump