Re: what happens to indexes when TRUNCATEing

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: "Willy-Bas Loos" <willybas(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: what happens to indexes when TRUNCATEing
Date: 2008-12-17 11:39:29
Message-ID: 2f4958ff0812170339j436fe5d6o1e127c337adda894@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 17, 2008 at 11:37 AM, Willy-Bas Loos <willybas(at)gmail(dot)com> wrote:
>>> What happens to indexes on a table that is TRUNCATEd?
>>They are truncated too.
> From the manual:
> "Furthermore, [truncate] reclaims disk space immediately, rather than
> requiring a subsequent VACUUM operation."
> Does this go for indexes too?
>
someone asked the same question here not so long time ago. The answer
is - yes, it applies to indices too.

--
GJ

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2008-12-17 11:45:16 Re: Isolating a record column from a PL-Pgsql function call ?
Previous Message Alvaro Herrera 2008-12-17 11:39:17 Re: what happens to indexes when TRUNCATEing