Re: reindexing

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: reindexing
Дата
Msg-id 200212061129.34146.dev@archonet.com
обсуждение исходный текст
Ответ на reindexing  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
On Friday 06 Dec 2002 10:34 am, Jean-Christian Imbeault wrote:
> The online docs have this to say about reindexing a whole DB:
>
>    Rebuild all system indexes (this will only work in a standalone
>    backend):
>
>    REINDEX DATABASE my_database FORCE;
>
> What does "standalone backend" mean? And how can I use this command to
> reindex my DB? I have tried version commands but always get:
>
> ERROR:  REINDEX DATABASE: Can be executed only on the currently open
> database.

You run a backend manually without anything else being able to connect. See
"man postgres" for details. You'll want to shut down PG, start the backend
with -O -P flags and the database name, reindex and Ctrl-D to finish. Then,
restart PG normally.

HTH

--
  Richard Huxton

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

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: reindexing
Следующее
От: "Ian Harding"
Дата:
Сообщение: Re: Can I User @@error of MS SQL in postgresql