Re: [SQL] Questions about vacuum analyze

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Steven M(dot) Wheeler" <swheeler(at)sabre(dot)com>, pgsql-sql(at)hub(dot)org
Subject: Re: [SQL] Questions about vacuum analyze
Date: 1999-10-11 18:45:18
Message-ID: 8559.939667518@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> Wonder how our create index does it. Seems it is must be similar.

CREATE INDEX (for btrees) is very similar, and really ought to share
code. Someone apparently didn't want to figure out how to generalize
psort.c to handle index tuples, though. The CREATE INDEX code is a
little better for large amounts of data but a lot worse for small
amounts --- AFAICT it doesn't take any shortcuts, even when everything
fits in memory. (I'm sure you've noticed that CREATE INDEX hits the
disk pretty hard even when the source table is empty :-(.)

I'm planning to merge the two sets of code and keep the best features of
both. I already have some first-draft code that allows them to work
with >2gig data sets.

regards, tom lane

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-10-11 18:55:32 Re: [SQL] Questions about vacuum analyze
Previous Message Nicolas Boretos 1999-10-11 18:39:10 Triggers on backend