Re: simple question

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Rick Gigger <rick(at)alpinenetworking(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: simple question
Date: 2003-11-13 18:12:18
Message-ID: Pine.LNX.4.33.0311131110270.612-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 12 Nov 2003, Rick Gigger wrote:

> Is this correct?
>
> vacuum by itself just cleans out the old extraneous tuples so that they
> aren't in the way anymore
> vacuum analyze rebuilds indexes. If you add an index to a table it won't be
> used until you vacuum analyze it
> vacuum full actually compresses the table on disk by reclaiming the space
> from the old tuples after they have been removed.

You don't have to analyze AFTER index creation, just at some point in
time. I.e.:

create table test ...

import into table test 1000000 rows

analyze test;

create index test_field1_dx on test (id);

select * from test where id=4567; <- this will likely use the index.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2003-11-13 18:47:17 Re: RHEL
Previous Message scott.marlowe 2003-11-13 18:09:06 Re: More Praise for 7.4RC2