Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCY4H-0005yi-C5 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:53:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCY4G-0004S3-ET for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:53:36 +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 1XCY4D-0004N5-SY for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:53:33 +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 1XCY4A-0000aP-9T for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:53:32 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XCY45-00055b-TD; Wed, 30 Jul 2014 13:53:25 -0400 Date: Wed, 30 Jul 2014 13:53:25 -0400 From: Bruce Momjian To: Vik Fearing Cc: Tom Lane , dmigowski@ikoffice.de, pgsql-bugs@postgresql.org Subject: Re: BUG #10823: Better REINDEX syntax. Message-ID: <20140730175325.GK2791@momjian.us> References: <20140701103307.15691.5420@wrigleys.postgresql.org> <20140730160750.GH2791@momjian.us> <32524.1406741371@sss.pgh.pa.us> <20140730173555.GI2791@momjian.us> <53D92FF7.1040702@dalibo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53D92FF7.1040702@dalibo.com> 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 07:48:39PM +0200, Vik Fearing wrote: > On 07/30/2014 07:35 PM, Bruce Momjian wrote: > > 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? > > I agree. The request isn't for a naked REINDEX command, it's for a > naked REINDEX DATABASE command. Yes, the question is should we support REINDEX DATABASE without a database name that matches the current database. REINDEX alone might be too risky. -- 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