Re: reindex database

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: reindex database
Date: 2007-03-14 13:12:05
Message-ID: 200703141512.10225.achill@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Στις Τετάρτη 14 Μάρτιος 2007 14:44, ο/η Sabin Coanda έγραψε:
> Hi,
>
> It would be so nice to use REINDEX DATABASE command without name, for the
> current database.
> Now the command is useless when a database schema script refers just
> itself, and the database name is not establish. I have to use REINDEX TABLE
> name instead searching all the database tables.
>
> What is your opinion ?

<path to your db sources>/contrib/reindexdb/reindexdb -a
reindexes everything.

Also your script would do a

#!/bin/csh
set mydb=`psql -q -t -c "SELECT current_database()" | tr -d " \n"`
<path to your db sources>/contrib/reindexdb/reindexdb -d $mydb

>
> Regards,
> Sabin
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

--
Achilleas Mantzios

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2007-03-14 14:09:34 Re: How to declare cursor if tablename is a variable?
Previous Message Sabin Coanda 2007-03-14 12:44:53 reindex database