Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XOuW1-0008QH-7X for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2014 20:17:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XOuW0-0001Cw-6B for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2014 20:17:20 +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 1XOuVq-0000xk-Az for pgsql-hackers@postgresql.org; Tue, 02 Sep 2014 20:17:10 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XOuVm-0008Lw-HG for pgsql-hackers@postgresql.org; Tue, 02 Sep 2014 20:17:08 +0000 Received: by mail-lb0-f173.google.com with SMTP id c11so8295311lbj.32 for ; Tue, 02 Sep 2014 13:17:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=QuF9KV1yDG8nh0jHQaFmaqePb4SKwcorv1lWz1yYhok=; b=YTFu5uv4XpvkYua9vlQqTmKQAIsUKTdbhEQbcBfhD/7jP51cB9js3n3u3OAUPy2+S6 LSRud+lWIY+sW3n7gZ0AN/jNUIK2/kVfWG2v6M85dzY+1H3SoqoDFZwOwiCHg172duQU vg/X9frErSOJ7pPBt6ReBKvSZ2k52Y/w7Zh6PJnWjSx/8Xvb+6gD6IOsVQzxONt2z9Jm FVDf+r9lOG2bP2JuS3zKgDrSYGzgYlwGJW4QghoW4MY0ghovuaKjjPCGUx/fqGetq+2b bnJw3Q6ZSAjeKHdhJ6XA3ZO9fs19c07JDL+Hgf8C38a30sQAh7478AynnEyyaVFSD6vP VXmw== X-Gm-Message-State: ALoCoQlv7GiKeEGSLkDWCWTuqWVJftFmZVSABRn2pBiW6WmOiAsx+3qAAxBwOrdci1RQHUZiRMuq X-Received: by 10.152.87.139 with SMTP id ay11mr36616370lab.38.1409689023855; Tue, 02 Sep 2014 13:17:03 -0700 (PDT) Received: from [172.20.10.2] (c-5eeaaa29-74736162.cust.telenor.se. [94.234.170.41]) by mx.google.com with ESMTPSA id n11sm6664894lbl.13.2014.09.02.13.17.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Sep 2014 13:17:03 -0700 (PDT) Message-ID: <540625BE.2060303@joh.to> Date: Tue, 02 Sep 2014 22:17:02 +0200 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Alvaro Herrera , Vik Fearing CC: Tom Lane , Bruce Momjian , dmigowski@ikoffice.de, PG Hackers Subject: Re: [BUGS] BUG #10823: Better REINDEX syntax. 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> In-Reply-To: <20140828230056.GD7705@eldon.alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 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