pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: Sawada Masahiko <sawada.mshk@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: [HACKERS] More stats about skipped vacuums
Date: Sat, 25 Nov 2017 19:59:19 -0500
Message-ID: <8327.1511657959@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqRn50_CqOERtAjvOvzyaNfOre3HG2WJdZphXki6cox0FQ@mail.gmail.com>
References: <CAB7nPqQm_WCKuUf5RD0CzeMuMO907ZPKP7mBh-3t2zSJ9jn+PA@mail.gmail.com>
	<20171116.193402.26276109.horiguchi.kyotaro@lab.ntt.co.jp>
	<CAB7nPqQV1Emkj=5VFzui250T6v+xcpRQ2RfHu_oQMbdXnZw3mA@mail.gmail.com>
	<20171121.160957.124460918.horiguchi.kyotaro@lab.ntt.co.jp>
	<CA+TgmoZtsZLMd8ku2fwjf=B9Txz8CKCLNkbmz1yzMy7CMU_eEg@mail.gmail.com>
	<CAB7nPqTQZyHXETX0sU-10XMRy3YS6QHF1iLBxPgPBKxAkXuMJw@mail.gmail.com>
	<1323.1511624064@sss.pgh.pa.us>
	<CAB7nPqRn50_CqOERtAjvOvzyaNfOre3HG2WJdZphXki6cox0FQ@mail.gmail.com>

Michael Paquier <michael.paquier@gmail.com> writes:
> I am not arguing about skipped vacuuum data here (don't think much of
> it by the way), but of the number of index scans done by the last
> vacuum or autovacuum. This helps in tunning autovacuum_work_mem and
> maintenance_work_mem. The bar is still too high for that?

I'd say so ... that's something the average user will never bother with,
and even if they knew to bother, it's far from obvious what to do with
the information.  Besides, I don't think you could just save the number
of scans and nothing else.  For it to be meaningful, you'd at least have
to know the prevailing work_mem setting and the number of dead tuples
removed ... and then you'd need some info about your historical average
and maximum number of dead tuples removed, so that you knew whether the
last vacuum operation was at all representative.  So this is sounding
like quite a lot of new counters, in support of perhaps 0.1% of the
user population.  Most people are just going to set maintenance_work_mem
as high as they can tolerate and call it good.

			regards, tom lane




view thread (40+ messages)  latest in thread

Message-ID: <8327.1511657959@sss.pgh.pa.us>
Permalink:  ../8327.1511657959@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8327.1511657959@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, horiguchi.kyotaro@lab.ntt.co.jp, sawada.mshk@gmail.com, robertmhaas@gmail.com
  Subject: Re: [HACKERS] More stats about skipped vacuums
  In-Reply-To: <8327.1511657959@sss.pgh.pa.us>

* 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