Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCY0l-0005j8-4N for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:49:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCY0k-0001H4-Kw for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:49:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCY0j-0001Gy-Si for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:49:58 +0000 Received: from mimolette.dalibo.net ([212.85.154.222]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCY0g-0000yc-UX for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:49:56 +0000 Received: from [192.168.0.4] (ath91-3-88-167-161-184.fbx.proxad.net [88.167.161.184]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 2502C5080465; Wed, 30 Jul 2014 19:49:22 +0200 (CEST) Message-ID: <53D92FF7.1040702@dalibo.com> Date: Wed, 30 Jul 2014 19:48:39 +0200 From: Vik Fearing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Bruce Momjian , Tom Lane CC: dmigowski@ikoffice.de, pgsql-bugs@postgresql.org Subject: Re: BUG #10823: Better REINDEX syntax. References: <20140701103307.15691.5420@wrigleys.postgresql.org> <20140730160750.GH2791@momjian.us> <32524.1406741371@sss.pgh.pa.us> <20140730173555.GI2791@momjian.us> In-Reply-To: <20140730173555.GI2791@momjian.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 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. -- Vik -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs