From: Marko Tiikkaja <marko@joh.to>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Vik Fearing <vik.fearing@dalibo.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: Tue, 02 Sep 2014 22:17:02 +0200
Message-ID: <540625BE.2060303@joh.to> (raw)
In-Reply-To: <20140828230056.GD7705@eldon.alvh.no-ip.org>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2014-08-29 01:00, Alvaro Herrera wrote:
> Vik Fearing wrote:
>
>> Here are two patches for this.
>>
>> The first one, reindex_user_tables.v1.patch, implements the variant that
>> only hits user tables, as suggested by you.
>>
>> The second one, reindex_no_dbname.v1.patch, allows the three
>> database-wide variants to omit the database name (voted for by Daniel
>> Migowski, Bruce, and myself; voted against by you). This patch is to be
>> applied on top of the first one.
>
> Not a fan. Here's a revised version that provides REINDEX USER TABLES,
> which can only be used without a database name; other modes are not
> affected i.e. they continue to require a database name.
Yeah, I think I like this better than allowing all of them without the
database name.
> I also renamed
> your proposed reindexdb's --usertables to --user-tables.
I agree with this change.
> Oh, I just noticed that if you say reindexdb --all --user-tables, the
> latter is not honored. Must fix before commit.
Definitely.
> Note: I don't like the reindexdb UI; if you just run "reindexdb -d
> foobar" it will reindex everything, including system catalogs. I think
> USER TABLES should be the default operation mode for reindex. If you
> want plain old "REINDEX DATABASE foobar" which also hits the catalogs,
> you should request that separately (how?). This patch doesn't change
> this.
This should probably be a separate patch if it's going to happen. But
the idea seems reasonable.
> Also note: if you say "user tables", information_schema is reindexed too,
> which kinda sucks.
*shrug* It sort of makes sense if you think of this as the opposite of
REINDEX SYSTEM. I'm not at all sure whether including or excluding it
would be the better choice here.
Do we have some kind of an agreement on what this patch should look
like? Is someone going to prepare an updated patch? Vik?
.marko
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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: marko@joh.to, alvherre@2ndquadrant.com, vik.fearing@dalibo.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: <540625BE.2060303@joh.to>
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>
* 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