Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCXnI-0004v2-I6 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:36:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCXnI-0005N1-0y for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:36:04 +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 1XCXnG-0005Kl-Oe for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:36:02 +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 1XCXnD-0000H3-0V for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:36:01 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XCXn9-0004BE-Vd; Wed, 30 Jul 2014 13:35:55 -0400 Date: Wed, 30 Jul 2014 13:35:55 -0400 From: Bruce Momjian To: Tom Lane Cc: dmigowski@ikoffice.de, pgsql-bugs@postgresql.org Subject: Re: BUG #10823: Better REINDEX syntax. Message-ID: <20140730173555.GI2791@momjian.us> References: <20140701103307.15691.5420@wrigleys.postgresql.org> <20140730160750.GH2791@momjian.us> <32524.1406741371@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32524.1406741371@sss.pgh.pa.us> 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 Wed, Jul 30, 2014 at 01:29:31PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > On Tue, Jul 1, 2014 at 10:33:07AM +0000, dmigowski@ikoffice.de wrote: > >> 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. > > I don't find it all that odd. We should not be encouraging routine > database-wide reindexes. Uh, do we encourage database-wide VACUUM FULL or CLUSTER, as we use them there with no parameter. Is there a reason REINDEX should be harder, and require a dummy argument to run? -- 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