pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Szymon Lipiński <mabewlun@gmail.com>
To: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: bug in autovacuum_analyze_scale_factor meta data
Date: Wed, 31 Oct 2018 07:06:45 -0700
Message-ID: <650691c3-514a-5504-3d80-cd390d910fda@aklaver.com> (raw)
In-Reply-To: <CAFjNrYttOuyMVJ6xs0n4NAo-WrB6oz+uuk4G_oqvv_y65w+pyg@mail.gmail.com>
References: <CAFjNrYttOuyMVJ6xs0n4NAo-WrB6oz+uuk4G_oqvv_y65w+pyg@mail.gmail.com>

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




view thread (3+ messages)  latest in thread

Message-ID: <650691c3-514a-5504-3d80-cd390d910fda@aklaver.com>
Permalink:  ../650691c3-514a-5504-3d80-cd390d910fda@aklaver.com/
Also on:    postgresql.org/message-id/650691c3-514a-5504-3d80-cd390d910fda@aklaver.com

 · 

reply

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, mabewlun@gmail.com
  Subject: Re: bug in autovacuum_analyze_scale_factor meta data
  In-Reply-To: <650691c3-514a-5504-3d80-cd390d910fda@aklaver.com>
  References: <CAFjNrYttOuyMVJ6xs0n4NAo-WrB6oz+uuk4G_oqvv_y65w+pyg@mail.gmail.com> <650691c3-514a-5504-3d80-cd390d910fda@aklaver.com>

* 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