Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqJ7F-0002qn-RS for pgsql-docs@arkaria.postgresql.org; Tue, 30 Jun 2020 16:28:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqJ7E-0002MV-Pn for pgsql-docs@arkaria.postgresql.org; Tue, 30 Jun 2020 16:28:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqJ7E-0002MI-Js for pgsql-docs@lists.postgresql.org; Tue, 30 Jun 2020 16:28:12 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqJ7C-0007ml-En for pgsql-docs@lists.postgresql.org; Tue, 30 Jun 2020 16:28:11 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jqJ79-0000pe-9C; Tue, 30 Jun 2020 12:28:07 -0400 Date: Tue, 30 Jun 2020 12:28:07 -0400 From: Bruce Momjian To: Laurenz Albe Cc: galiev_mr@taximaxim.ru, pgsql-docs@lists.postgresql.org Subject: Re: INDEX with optional storage parameter value Message-ID: <20200630162807.GC28710@momjian.us> References: <159283163235.684.4482737698910467437@wrigleys.postgresql.org> <20200627211423.GG16644@momjian.us> <218a622abfb0aa895e9fce4e41b278e469932211.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <218a622abfb0aa895e9fce4e41b278e469932211.camel@cybertec.at> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jun 29, 2020 at 09:26:57AM +0200, Laurenz Albe wrote: > On Sat, 2020-06-27 at 17:14 -0400, Bruce Momjian wrote: > > > I noticed an slight inaccuracy in the documentation for CREATE INDEX and > > > ALTER INDEX: > > > > > > CREATE INDEX ... [ WITH ( storage_parameter = value [, ... ] ) ] > > > ALTER INDEX [ IF EXISTS ] name SET ( storage_parameter = value [, ... ] ) > > > > > > In indices, as in tables, you can omit the вoolean value for a parameter. > > > For example: > > > > > > CREATE INDEX ON public.testtable USING GIN (c1) WITH (fastupdate); > > > ALTER INDEX testtable_c1_idx SET (fastupdate); > > > > > > It might be more correct to use the construct from CREATE TABLE: > > > > > > storage_parameter [= value] [, ... ] > > > > I found a few more places that also didn't properly document this; > > patch attached. > > Looks good. > Perhaps it is worth explaining this explicitly, as in the attached. Uh, I considered this, but it seems unnecessary at this time. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee