Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCxiU-0006jc-If for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Aug 2013 20:12:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCxiU-0006WF-1O for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Aug 2013 20:12:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCxiS-0006Uq-RS for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 20:12:16 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCxiQ-00037a-8C for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 20:12:16 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VCxiN-0007Si-PV for pgsql-bugs@postgresql.org; Fri, 23 Aug 2013 22:12:11 +0200 Received: from ppp-82-135-90-58.dynamic.mnet-online.de ([82.135.90.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Aug 2013 22:12:11 +0200 Received: from spam_eater by ppp-82-135-90-58.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Aug 2013 22:12:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-bugs@postgresql.org From: Thomas Kellerer Subject: Re: BUG #8394: SQL command REINDEX doesn't work Date: Fri, 23 Aug 2013 22:12:52 +0200 Lines: 27 Message-ID: <5217C244.8000607@gmx.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org Cc: yzhang@trinityusa.com X-Gmane-NNTP-Posting-Host: ppp-82-135-90-58.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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