Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHr94-0004m1-2d for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 14:06:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHr90-0006mv-S2 for pgsql-general@arkaria.postgresql.org; Wed, 31 Oct 2018 14:06:50 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHr90-0006mo-JR for pgsql-general@lists.postgresql.org; Wed, 31 Oct 2018 14:06:50 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHr8y-00021d-0x for pgsql-general@postgresql.org; Wed, 31 Oct 2018 14:06:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B962721B62; Wed, 31 Oct 2018 10:06:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 31 Oct 2018 10:06:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=u 7gGLvRJB2bf6z+MKD5C9SoG6dm3A1t5zjs9gVc3bSc=; b=3978RhqHnpkiKYAjx uzaFGYR6S5XLYFl688cJMt+XYjD61eqlIW5vOoTYoUym0LdQn/WpOdYqPLhrjT6Z 4V/NWo56FFz+CZz+TYKAkcM8IpQ4uAalSut3AZ4RuQOExS8Jp1/FMo0E5TTdiyhA NGGoci14VZhqrVjPcvyOyg+uDBpTRSyMnMDpl/fZTLgbFcOZvRS/Kusr3sMa1/P5 3JBQ/TfEGBobOKlvkozerFDhT0rdq1wHY57QO/r+TxHhR4zrUs8Y2NYfSBT79fVP 2b6LDJFOUvWuK/yjmwDYXh0phdRtgBUvClY6FYdvzRD8an6sF2LZIBt6T4Xs7weZ 0xiGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=u7gGLvRJB2bf6z+MKD5C9SoG6dm3A1t5zjs9gVc3b Sc=; b=O0f6qnchZskmDgiIVt6zOSsZCfFe2Rs3fnyr5PsF8q9icCJQ8K/orfb0q 2DdNpOAJLRbr+5r29fItzDN/w6t8uG7D+aJ6NQEMzp7+q5gQ3d+2JT4Y8i3+cCa7 Xbrn6OmynAwKaSh5T6pA0Ox9YlZybC+8olkxUBJMwfpom0mj/HcdeXBFrO5b1q+R +OHh18MHFVBlDsmzUJxfpjqKYBREa64dBZ9DygFyF2DZWjtQhJ1RcHGAFyh9lBlr FGfcjGFDuhiG8hb92RyeJVH1RnW6S8jJhq35yqmKbTxL+qjcIxOpEtQDWB9TrXbr kOYCSNRYIfd/fF6Z2cS+rYcjdiiWg== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id DABABE46B8; Wed, 31 Oct 2018 10:06:45 -0400 (EDT) Subject: Re: bug in autovacuum_analyze_scale_factor meta data To: =?UTF-8?Q?Szymon_Lipi=c5=84ski?= , PostgreSQL References: From: Adrian Klaver Message-ID: <650691c3-514a-5504-3d80-cd390d910fda@aklaver.com> Date: Wed, 31 Oct 2018 07:06:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/31/18 6:58 AM, Szymon Lipiński wrote: > This is what I have in postgres 10 pg_settings table: and the > documentation has different description. What's more the default value > is outside the range of the min/max value. Not seeing it: 0 < 0.1 < 100 reltuples is a measure of the sixe of the table: https://www.postgresql.org/docs/11/static/catalog-pg-class.html "reltuples float4 Number of live rows in the table. This is only an estimate used by the planner. It is updated by VACUUM, ANALYZE, and a few DDL commands such as CREATE INDEX. " > > -[ RECORD 2 > ]---+------------------------------------------------------------------------------------------ > name            | autovacuum_analyze_scale_factor > setting         | 0.1 > unit            | [NULL] > category        | Autovacuum > short_desc      | Number of tuple inserts, updates, or deletes prior to > analyze as a fraction of reltuples. > extra_desc      | [NULL] > context         | sighup > vartype         | real > source          | default > min_val         | 0 > max_val         | 100 > enumvals        | [NULL] > boot_val        | 0.1 > reset_val       | 0.1 > sourcefile      | [NULL] > sourceline      | [NULL] > pending_restart | f > > regards, > Szymon Lipiński -- Adrian Klaver adrian.klaver@aklaver.com