RE: [HACKERS] How to ignore system indexes

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема RE: [HACKERS] How to ignore system indexes
Дата
Msg-id 001c01bf6177$94d73ec0$2801007e@tpf.co.jp
обсуждение исходный текст
Ответ на Re: [HACKERS] How to ignore system indexes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [HACKERS] How to ignore system indexes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> 
> > > One solution is to use pg_upgrade.  It allows an initdb and 
> recreate of
> > > all tables without reload.
> > > -- 
> > 
> > Isn't it a big charge to execute pg_upgrade for a huge database ?
> > I have never used pg_upgrade.
> > Is pg_upgrade available now ?
> > Is pg_upgrade reliable ?
> 
> It has been around since 6.3?  It allows initdb, recreates the tables,
> then moves the data files back into place.  There is even a manual page.
>

I know the command but does 6.5 have it ?
> > 
> > My design is as follows.
> > 
> > postgres -P test   /* I'm using -P as a new option temporarily */.
> > 
> > > reindex database test;  (all system indexes of a db)
> > > reindex table pg_class; (all indexes of a system table)
> > > reindex index pg_index_indexrelid_index; (a system index)
> > 
> > If we could ignore system indexes,it won't be difficult to implement
> > REINDEX command itself..
> 
> Not sure how to find all those places.
>

I would only change the stuff required for REINDEX command,
though I know almost all those places.
Regards.

Hiroshi Inoue
Inoue@tpf.co.jp


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Is pg_dump still broken?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] How to ignore system indexes