Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCWQ4-00082u-DC for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 16:08:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCWQ3-0001m4-Sw for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 16:07:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCWQ2-0001lv-Sp for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 16:07:58 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XCWPy-00077F-9e for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 16:07:57 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XCWPu-0000Xe-KQ; Wed, 30 Jul 2014 12:07:50 -0400 Date: Wed, 30 Jul 2014 12:07:50 -0400 From: Bruce Momjian To: dmigowski@ikoffice.de Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10823: Better REINDEX syntax. Message-ID: <20140730160750.GH2791@momjian.us> References: <20140701103307.15691.5420@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140701103307.15691.5420@wrigleys.postgresql.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) 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 On Tue, Jul 1, 2014 at 10:33:07AM +0000, dmigowski@ikoffice.de wrote: > The following bug has been logged on the website: > > Bug reference: 10823 > Logged by: Daniel Migowski > Email address: dmigowski@ikoffice.de > PostgreSQL version: 9.1.13 > Operating system: n/a > Description: > > Hello. > > Compared to CLUSTER and VACUUM FULL we need to specify a database to the > REINDEX command. Why? It would be logical to reindex the current database, > exactly like CLUSTER does. So why isn't the DATABASE parameter optional? Wow, yeah, that is kind of odd, e.g. REINDEX { INDEX | TABLE | DATABASE | SYSTEM } name [ FORCE ] ... name The name of the specific index, table, or database to be reindexed. Index and table names can be schema-qualified. Presently, REINDEX DATABASE and REINDEX SYSTEM can only reindex the current database, so their parameter must match the current database's name. Let me look at improving that for 9.5. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs