X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 44B05536CB for ; Fri, 22 Apr 2005 14:03:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96043-09 for ; Fri, 22 Apr 2005 17:03:37 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.197.194]) by svr1.postgresql.org (Postfix) with SMTP id 1E36C539B9 for ; Fri, 22 Apr 2005 14:03:36 -0300 (ADT) Received: (qmail 12762 invoked by uid 500); 22 Apr 2005 17:23:07 -0000 Date: Fri, 22 Apr 2005 12:23:07 -0500 From: Bruno Wolff III To: FBaron@co.belcorp.biz Cc: pgsql-admin@postgresql.org Subject: Re: Reindex from command line linux Message-ID: <20050422172307.GA11267@wolff.to> Mail-Followup-To: Bruno Wolff III , FBaron@co.belcorp.biz, pgsql-admin@postgresql.org References: <20050422163956.GC4347@wolff.to> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.273 tagged_above=0 required=5 tests=AWL, BIZ_TLD X-Spam-Level: X-Archive-Number: 200504/317 X-Sequence-Number: 17330 On Fri, Apr 22, 2005 at 11:36:46 -0500, FBaron@co.belcorp.biz wrote: > > > > > thanks Bruno : > I'm running the command with root > psql -c "REINDEX DATABASE Clibelcorpco FORCE" > psql: FATAL: La base de datos "root" no existe en el catalogo del > sistema.(Traslate : The "root" database doesn´t exsists) You need to run it as the Postgres superuser instead of "root". > I execute : > > psql -d Clibelcorpco -c "REINDEX DATABASE Clibelcorpco FORCE" > ERROR: REINDEX DATABASE: Can be executed only on the currently open > database. > > what do you think? I am not sure what is happening in this case. It might be a case mismatch on the database name.