Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCXyB-0005b8-RG for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:47:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCXyA-0008OZ-Re for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jul 2014 17:47:18 +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 1XCXy8-0008OQ-Q1 for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:47:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCXy5-0000xo-Oh for pgsql-bugs@postgresql.org; Wed, 30 Jul 2014 17:47:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s6UHkxXS001841; Wed, 30 Jul 2014 13:46:59 -0400 From: Tom Lane To: Bruce Momjian cc: dmigowski@ikoffice.de, pgsql-bugs@postgresql.org Subject: Re: BUG #10823: Better REINDEX syntax. In-reply-to: <20140730173555.GI2791@momjian.us> References: <20140701103307.15691.5420@wrigleys.postgresql.org> <20140730160750.GH2791@momjian.us> <32524.1406741371@sss.pgh.pa.us> <20140730173555.GI2791@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 30 Jul 2014 13:35:55 -0400" Date: Wed, 30 Jul 2014 13:46:59 -0400 Message-ID: <1840.1406742419@sss.pgh.pa.us> 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 Bruce Momjian writes: > On Wed, Jul 30, 2014 at 01:29:31PM -0400, Tom Lane wrote: >> 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 believe that REINDEX on system catalogs carries a risk of deadlock failures against other processes --- there was a recent example of that in the mailing lists. VACUUM FULL has such risks too, but that's been pretty well deprecated for many years. (I think CLUSTER is probably relatively safe on this score because it's not going to think any system catalogs are clustered.) If there were a variant of REINDEX that only hit user tables, I'd be fine with making that easy to invoke. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs