From: Stephen Frost <sfrost@snowman.net>
To: Vik Fearing <vik.fearing@dalibo.com>
Cc: Marko Tiikkaja <marko@joh.to>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: dmigowski@ikoffice.de
Cc: PG Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #10823: Better REINDEX syntax.
Date: Wed, 10 Sep 2014 17:53:10 -0400
Message-ID: <20140910215309.GU16422@tamriel.snowman.net> (raw)
In-Reply-To: <5410C602.1040905@dalibo.com>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
* 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!
> >
> > Eh, because it ends up reindexing system tables too, which is probably
> > not what new folks are expecting.
>
> 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.
>
> 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.
> >
> > Still planning to do this..?
> >
> > Marking this back to waiting-for-author.
>
> Yes, but probably not for this commitfest unfortunately.
Fair enough, I'll mark it 'returned with feedback'.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, vik.fearing@dalibo.com, marko@joh.to, alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, bruce@momjian.us, dmigowski@ikoffice.de, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #10823: Better REINDEX syntax.
In-Reply-To: <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> <20140910215309.GU16422@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox