pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik.fearing@dalibo.com>
To: Stephen Frost <sfrost@snowman.net>
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 23:43:30 +0200
Message-ID: <5410C602.1040905@dalibo.com> (raw)
In-Reply-To: <20140908041750.GA16422@tamriel.snowman.net>
References: <20140701103307.15691.5420@wrigleys.postgresql.org>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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.

> 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.

>> 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.
-- 
Vik


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (21+ messages)  latest in thread

Message-ID: <5410C602.1040905@dalibo.com>
Permalink:  ../5410C602.1040905@dalibo.com/
Also on:    postgresql.org/message-id/5410C602.1040905@dalibo.com

 · 

reply

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: vik.fearing@dalibo.com, sfrost@snowman.net, 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: <5410C602.1040905@dalibo.com>
  References: <20140701103307.15691.5420@wrigleys.postgresql.org> <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>

* 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