pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-sql@postgresql.org
Subject: Re: reindex database
Date: Wed, 14 Mar 2007 15:12:05 +0200
Message-ID: <200703141512.10225.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <et8qnr$pvk$1@news.hub.org>
References: <et8qnr$pvk$1@news.hub.org>

Óôéò ÔåôÜñôç 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@postgresql.org so that your
>        message can get through to the mailing list cleanly

-- 
Achilleas Mantzios



view thread (11+ messages)

Message-ID: <200703141512.10225.achill@matrix.gatewaynet.com>
Permalink:  ../200703141512.10225.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200703141512.10225.achill@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: reindex database
  In-Reply-To: <200703141512.10225.achill@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox