Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ioJlb-0003wx-97 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 04:13:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ioJla-0005Nv-23 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Jan 2020 04:13:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ioJlZ-0005No-MZ for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 04:13:21 +0000 Received: from mail-yb1-xb43.google.com ([2607:f8b0:4864:20::b43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ioJlW-0007GJ-ME for pgsql-hackers@lists.postgresql.org; Mon, 06 Jan 2020 04:13:21 +0000 Received: by mail-yb1-xb43.google.com with SMTP id v24so21557580ybd.10 for ; Sun, 05 Jan 2020 20:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nT4z2ocC/R7Xe02ojQYEZWKSaZic8q4oiuApH2+xZSk=; b=fnX0r3O9XXqR4zCiT9hGHdU8evOaF6+p7rQdGF15EGmmYYIANMrTrZrqeYdW/XYssV ptVsjbN2EZdHSLne1gnNeGq0z8n4cI9Fa+DzdvQEMDhGhVtqd+aQGw3RCHKnBVfnp4P7 1NUjI2qqKYdg1ZZrP/1FEzO44yAZeTctJtFuKfX6WH8q8w8vcAJ0MXHNCforA5tv6ZOH V4lF47p+QSXqbPiAIkTAkpjY3TQ4EobolflV5rUWT2NPrT2zXbNcg+FOgJh8J4BUI4E/ Be8DAGyYSVrYgFOkGQGpKoFzJlmxTfF5fiD64emCFX7dkLvUKKhgjzm7fTulblCi3ipx RQHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nT4z2ocC/R7Xe02ojQYEZWKSaZic8q4oiuApH2+xZSk=; b=gRL9Yplv7RM9c/2t8cJO6TRK3vpW35LEz8dAQ5+Tt1R9302xyzfgc+iM9RXkTZCUfu ObkOwHvfoCaXHWOS+YfaupLCfwI2H/YynGOSapNerE0a3pF8aZLdcSRCC9Vdpt2WubY+ P1V7TODjF191MeUPB+HCaoJFZQA1hreryt2ZKPd4hsFssb01XSFMc9x6157DXA7bQM/x of3QkURrddVRu9NxswbWgdJkPhyjihkjW3MAeIm2oGsBC49yQ/O6jdyM9UYujqpCEEFw /i/v3dZp12ZfRJDvwRiE7AUZFAFFUKxtpXz5kU6xgulN8hQAFFIWwMSayl+0hun0M13V fLhQ== X-Gm-Message-State: APjAAAX0lMAXnEVCMayHGvwuf09b3fV+BN0yOsOPSrZ+n3QvGSZJzuAZ Af/X1X3xoQq42fIqP2AWJnBEqA== X-Google-Smtp-Source: APXvYqyuwytUbwIC7sM69OLPWJCjfSvO2aulat2h4Vw8sRc1T25lMcOwpY3tUXGUmthCxuj85QcDNA== X-Received: by 2002:a25:cf0b:: with SMTP id f11mr74237794ybg.469.1578283996613; Sun, 05 Jan 2020 20:13:16 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k85sm14269615ywa.79.2020.01.05.20.13.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Jan 2020 20:13:15 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 8294A800925; Sun, 5 Jan 2020 22:13:14 -0600 (CST) Date: Sun, 5 Jan 2020 22:13:14 -0600 From: Justin Pryzby To: Simon Riggs Cc: pgsql-hackers@lists.postgresql.org Subject: Re: doc: alter table references bogus table-specific planner parameters Message-ID: <20200106041314.GB12066@telsasoft.com> References: <20200103141427.GK12066@telsasoft.com> <20200104165047.GW12066@telsasoft.com> <20200106025623.GA12066@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jan 06, 2020 at 03:48:52AM +0000, Simon Riggs wrote: > On Mon, 6 Jan 2020 at 02:56, Justin Pryzby wrote: > > > commit 6f3a13ff058f15d565a30c16c0c2cb14cc994e42 Enhance docs for ALTER TABLE lock levels of storage parms > > Author: Simon Riggs > > Date: Mon Mar 6 16:48:12 2017 +0530 > > > > > > SET ( > class="PARAMETER">storage_parameter = > class="PARAMETER">value [, ... ] ) > > ... > > - Changing fillfactor and autovacuum storage parameters acquires a > > SHARE UPDATE EXCLUSIVE lock. > > + SHARE UPDATE EXCLUSIVE lock will be taken for > > + fillfactor and autovacuum storage parameters, as well as the > > + following planner related parameters: > > + effective_io_concurrency, parallel_workers, seq_page_cost > > + random_page_cost, n_distinct and n_distinct_inherited. > > > > effective_io_concurrency, seq_page_cost and random_page_cost cannot be set > > for > > a table - reloptions.c shows that they've always been > > RELOPT_KIND_TABLESPACE. > > I agree with the sentiment of the third doc change, but your patch removes > the mention of n_distinct, which isn't appropriate. I think it's correct to remove n_distinct there, as it's documented previously, since e5550d5f. That's a per-attribute option (not storage) and can't be specified there. SET ( attribute_option = value [, ... ] ) RESET ( attribute_option [, ... ] ) This form sets or resets per-attribute options. Currently, the only ... + + Changing per-attribute options acquires a + SHARE UPDATE EXCLUSIVE lock. + > The second change in your patch alters the meaning of the sentence in a way > that is counter to the first change. The name of these parameters is > "Storage Parameters" (in various places); I might agree with describing > them in text as "storage or planner parameters", but if you do that you > can't then just refer to "storage parameters" later, because if you do it > implies that planner parameters operate differently to storage parameters, > which they don't. The 2nd change is: for details on the available parameters. Note that the table contents - will not be modified immediately by this command; depending on the + will not be modified immediately by setting its storage parameters; depending on the parameter you might need to rewrite the table to get the desired effects. I deliberately qualified that as referring only to "storage params" rather than "this command", since planner params never "modify the table contents". Possibly other instances in the document (and createtable) should be changed for consistency. Justin