Re: what happens to indexes when TRUNCATEing

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Willy-Bas Loos <willybas(at)gmail(dot)com>
Cc: Pg General <pgsql-general(at)postgresql(dot)org>
Subject: Re: what happens to indexes when TRUNCATEing
Date: 2008-12-17 11:39:17
Message-ID: 20081217113917.GA4456@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Willy-Bas Loos escribió:
> >> 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?

Yes.

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"El sabio habla porque tiene algo que decir;
el tonto, porque tiene que decir algo" (Platon).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2008-12-17 11:39:29 Re: what happens to indexes when TRUNCATEing
Previous Message Willy-Bas Loos 2008-12-17 11:37:18 what happens to indexes when TRUNCATEing