Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XRppF-0004Zq-1c for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Sep 2014 21:53:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XRppE-0000tM-Ea for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Sep 2014 21:53:16 +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 1XRppC-0000q8-1g for pgsql-hackers@postgresql.org; Wed, 10 Sep 2014 21:53:14 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XRpp8-0002kB-MB for pgsql-hackers@postgresql.org; Wed, 10 Sep 2014 21:53:12 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 1FC505F7CE; Wed, 10 Sep 2014 17:53:10 -0400 (EDT) Date: Wed, 10 Sep 2014 17:53:10 -0400 From: Stephen Frost To: Vik Fearing Cc: Marko Tiikkaja , Alvaro Herrera , Tom Lane , Bruce Momjian , dmigowski@ikoffice.de, PG Hackers Subject: Re: [BUGS] BUG #10823: Better REINDEX syntax. Message-ID: <20140910215309.GU16422@tamriel.snowman.net> References: <20140730160750.GH2791@momjian.us> <32524.1406741371@sss.pgh.pa.us> <20140730173555.GI2791@momjian.us> <1840.1406742419@sss.pgh.pa.us> <53DB69DE.8040009@dalibo.com> <20140828230056.GD7705@eldon.alvh.no-ip.org> <540625BE.2060303@joh.to> <5407041E.4010309@dalibo.com> <20140908041750.GA16422@tamriel.snowman.net> <5410C602.1040905@dalibo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T800h0J0l5Cypp8c" Content-Disposition: inline In-Reply-To: <5410C602.1040905@dalibo.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.11.0-19-generic (x86_64) X-Uptime: 17:50:19 up 155 days, 8:09, 5 users, load average: 0.10, 0.07, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --T800h0J0l5Cypp8c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Vik Fearing (vik.fearing@dalibo.com) wrote: > On 09/08/2014 06:17 AM, Stephen Frost wrote: > > * Vik Fearing (vik.fearing@dalibo.com) wrote: > >> On 09/02/2014 10:17 PM, Marko Tiikkaja wrote: > >>> Yeah, I think I like this better than allowing all of them without the > >>> database name. > >> > >> Why? It's just a noise word! > >=20 > > Eh, because it ends up reindexing system tables too, which is probably > > not what new folks are expecting. >=20 > No behavior is changed at all. REINDEX DATABASE dbname; has always hit > the system tables. Since dbname can *only* be the current database, > there's no logic nor benefit in requiring it to be specified. Sure, but I think the point is that reindexing the system tables as part of a database-wide reindex is a *bad* thing which we shouldn't be encouraging by making it easier. I realize you're a bit 'stuck' here because we don't like the current behavior, but we don't want to change it either. > > Also, it's not required when you say > > 'user tables', so it's similar to your user_tables v1 patch in that > > regard. >=20 > The fact that REINDEX USER TABLES; is the only one that doesn't require > the dbname seems very inconsistent and confusing. I understand, but the alternative would be a 'reindex;' which *doesn't* reindex the system tables- would that be less confusing? Or getting rid of the current 'reindex database' which also reindexes system tables... > >> Yes, I will update the patch. > >=20 > > Still planning to do this..? > >=20 > > Marking this back to waiting-for-author. >=20 > Yes, but probably not for this commitfest unfortunately. Fair enough, I'll mark it 'returned with feedback'. Thanks! Stephen --T800h0J0l5Cypp8c Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUEMhFAAoJEO1sijiDR2RVQUgP/igAIj2ZPEDDhixXH4u3wtXZ MFglOl3fQBo7u0BAlv/KSZKrgxf5nu6/Ze2dwhy+iKdxC7s/8bwwuSxovhO9jedv Uz0IHY3THKTjDKuvbLfIdMgq/XcKXAWB4h1H0f7o2Y0Zg00+gNNU0j37yORuPw+k yKSjNMRMqyepKzXLQUZ+/jSMj9nD/8oPwSxe+9h/EjjBLY0Mov+C2T1baqk2lopU JjqcFZn1uvskoKeWN3+CpzffQHspU7aCBv+fsR/fnkhv+Kb5s/gnI2arC7jIyTMR M1UeJLiWaCTkkHsIOcspfQhP2kcpF6GgQrrbXscE4nULyCaCTR7wjyP4XXI9dVA3 PTHLezpCj8PqS2aRTlQxBDmSNfIsrl04Q2VfMGZDnyn6232/B7uqzI89Bv0nPs8T LE7X8pKx1l+QI6asdNuUZ4oOXqtBytooOPcMj8BnZv2F7PnPpvjxzvl5QjKH03fw LvYB3qzMP9I9yDPlO0j13C44SBgoeYNnhJZW8Zyu+EtfEJVqHj8AUWlLj/cX1Wac zGpU2jJF/UlnzRpOVD4r8DEMnCY4C2Eu4RLw7fG/bZWPgsYrAlA/xJrfzIXxA8Ge qnHk7adRCrVpzxngxXQ53DB0uDISEfUZKmUOHGTp00TILRBZKmxJfBvHkCA1KTpj bv8LYP9RWcazHuTdQd/e =j4cp -----END PGP SIGNATURE----- --T800h0J0l5Cypp8c--