index defragmentation

Поиск
Список
Период
Сортировка
Искать

index defragmentation

От:
Wei Weng <wweng@kencast.com>
Дата:
Does postgreSQL have some kind of utility to fix/defrag the fragmented 
index?

Thanks

Wei


Re: index defragmentation

От:
"D'Arcy J.M. Cain" <darcy@druid.net>
Дата:
On Wednesday 07 May 2003 12:47, Wei Weng wrote:
> Does postgreSQL have some kind of utility to fix/defrag the fragmented
> index?

REINDEX.  There is a contributed utility in contrib that allows you to do it 
for an entire database.

-- 
D'Arcy J.M. Cain    |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


Re: index defragmentation

От:
Richard Huxton <dev@archonet.com>
Дата:
On Wednesday 07 May 2003 5:47 pm, Wei Weng wrote:
> Does postgreSQL have some kind of utility to fix/defrag the fragmented
> index?

Are you familiar with "REINDEX"? I'm not sure I'd describe what it does as 
"defragmentation" but it will recreate an index. See the SQL command 
reference in the manuals for details (or the admin manual I think).
--  Richard Huxton


Re: index defragmentation

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Wei,

> Does postgreSQL have some kind of utility to fix/defrag the fragmented 
> index?

Yes.  See REINDEX under "SQL Commands" in the postgresql docs.

-- 
-Josh BerkusAglio Database SolutionsSan Francisco


FAQ