pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-bugs@postgresql.org
Cc: yzhang@trinityusa.com
Subject: Re: BUG #8394: SQL command REINDEX doesn't work
Date: Fri, 23 Aug 2013 22:12:52 +0200
Message-ID: <5217C244.8000607@gmx.net> (raw)
In-Reply-To: <E1VCtmT-00086w-8g@wrigleys.postgresql.org>
References: <E1VCtmT-00086w-8g@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

yzhang@trinityusa.com wrote on 23.08.2013 18:00:
> The following bug has been logged on the website:
>
> Bug reference:      8394
> Logged by:          Yz Primus
> Email address:      yzhang@trinityusa.com
> PostgreSQL version: 9.1.3
> Operating system:   Windows 7 64-bit
> Description:
>
> I always received error when trying to run SQL command REINDEX either from
> pgAdmin III or psql. If I ran REINDEX DATABASE it threw error:
> ERROR:  syntax error at end of input
> LINE 1: REINDEX DATABASE
>
>
> If I ran REINDEX DATABASE mydb it threw error:
> ERROR:  can only reindex the currently open database
>
Quote from the manual:

   Presently, REINDEX DATABASE and REINDEX SYSTEM can only reindex the current database,
   so their parameter must match the current database's name.

So you need to specify the name of the current database even though it's not really needed.





-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <5217C244.8000607@gmx.net>
Permalink:  ../5217C244.8000607@gmx.net/
Also on:    postgresql.org/message-id/5217C244.8000607@gmx.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: spam_eater@gmx.net, yzhang@trinityusa.com
  Subject: Re: BUG #8394: SQL command REINDEX doesn't work
  In-Reply-To: <5217C244.8000607@gmx.net>
  References: <E1VCtmT-00086w-8g@wrigleys.postgresql.org> <5217C244.8000607@gmx.net>

* 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