Re: reindexing

From: Richard Huxton <dev(at)archonet(dot)com>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: reindexing
Date: 2002-12-06 11:29:34
Message-ID: 200212061129.34146.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • reindexing at 2002-12-06 10:34:12 from Jean-Christian Imbeault

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2002-12-06 14:09:20 Re: [GENERAL] Drop column and Access
Previous Message Kevin Brown 2002-12-06 11:16:34 Re: 7.4 Wishlist