From:
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc:
Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>,"Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>,pgsql-hackers(at)postgresql(dot)org
Subject:
Re: Thoughts on maintaining 7.3
Date:
2003-10-03 21:37:52
Message-ID:
200310032137.h93Lbqc06748@candle.pha.pa.us (view raw or flat )
Thread:
2003-09-30 16:37:26 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 12:36:43 from "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
2003-10-01 13:14:07 from Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
2003-10-01 13:41:18 from "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
2003-10-01 15:50:14 from Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
2003-10-01 17:58:51 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 18:55:51 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2003-10-01 14:49:22 from Neil Conway <neilc(at)samurai(dot)com>
2003-10-01 15:40:23 from Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
2003-10-01 15:48:56 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 16:39:54 from Neil Conway <neilc(at)samurai(dot)com>
2003-10-05 13:41:03 from Hans-Jürgen Schönig <hs(at)cybertec(dot)at>
2003-10-01 17:48:44 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 14:44:57 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-01 13:19:51 from "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
2003-10-01 17:47:57 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 19:11:02 from "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
2003-10-01 19:31:54 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 19:49:55 from Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
2003-10-01 20:02:47 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 23:11:27 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-02 17:47:06 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-02 19:15:33 from Bruno Wolff III <bruno(at)wolff(dot)to>
2003-10-03 15:17:15 from Andrew Sullivan <andrew(at)libertyrms(dot)info>
2003-10-03 16:17:16 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-03 16:39:55 from Doug McNaught <doug(at)mcnaught(dot)org>
2003-10-03 16:47:58 from "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
2003-10-07 12:03:10 from Andrew Sullivan <andrew(at)libertyrms(dot)info>
2003-10-07 15:34:24 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-07 15:52:42 from Andrew Dunstan <andrew(at)dunslane(dot)net>
2003-10-07 15:58:26 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-07 17:59:12 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-07 18:21:49 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-07 18:01:42 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-08 01:28:40 from Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
2003-10-03 21:41:45 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-03 22:28:07 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-03 22:20:55 from "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
2003-10-01 19:35:15 from Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
2003-10-01 23:09:10 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-02 12:28:08 from Rod Taylor <rbt(at)rbt(dot)ca>
2003-10-03 21:37:52 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-04 03:36:57 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-04 03:42:00 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-04 15:41:17 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-05 03:13:34 from Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
2003-10-05 03:53:49 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-05 20:31:33 from Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
2003-10-05 21:41:59 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-09 19:36:12 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-05 03:17:09 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-05 03:26:56 from Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
2003-10-05 03:57:33 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-05 04:40:37 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-05 06:11:11 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-05 14:28:31 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-09 19:30:18 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-09 19:34:27 from Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
2003-10-01 22:11:18 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-01 22:23:16 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 22:35:55 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2003-10-01 15:40:57 from Andrew Sullivan <andrew(at)libertyrms(dot)info>
2003-10-01 15:49:51 from "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
2003-10-01 16:30:31 from Andrew Sullivan <andrew(at)libertyrms(dot)info>
Lists:
pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> writes:
> > I think what Tom is concerned about is that this hasn't been tested
> > enough with big datasets. Also there a little loss of index pages but
> > it's much less (orders of magnitude, I think) than what was before.
> > This is because the index won't shrink "vertically".
>
> The fact that we won't remove levels shouldn't be meaningful at all ---
> I mean, if the index was once big enough to require a dozen btree
> levels, and you delete everything, are you going to be upset that it
> drops to 13 pages rather than 2? I doubt it.
>
> The reason I'm waffling about whether the problem is completely fixed or
> not is that the existing code will only remove-and-recycle completely
> empty btree pages. As long as you have one key left on a page it will
> stay there. So you could end up with ridiculously low percentage-filled
> situations. This could be fixed by collapsing together adjacent
> more-than-half-empty pages, but we ran into a lot of problems trying to
> do that in a concurrent fashion. So I'm waiting to find out if real
> usage patterns have a significant issue with this or not.
Though the new code will put empty index pages into the free-space map,
will it also shrink the index file to remove those pages? For example,
if I have 200M rows in a table, and I delete all of them except 100,
does the index shrink, or the pages just become available for reuse.
With VACUUM FULL, we have a way to shrink the heap. Do we shrink the
index?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
In response to
Responses
pgsql-hackers by date
Next :From: Christopher BrowneDate: 2003-10-03 21:39:03
Subject : Re: Dreaming About Redesigning SQL
Previous :From : Tom LaneDate : 2003-10-03 20:36:00
Subject : Re: Strange behavior regarding temporary sequences