From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sherrylyn Branchaw <sbranchaw@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Does pg_stat_get_live_tuples() matter?
Date: Tue, 9 Apr 2019 14:28:58 -0700
Message-ID: <ea347682-eb9b-fad5-cf82-4abecf93954d@aklaver.com> (raw)
In-Reply-To: <CAB_myF4K=VFL=VF41k2=qNgTQ=r0AzojmBin=ejVHT9A-wat3A@mail.gmail.com>
References: <CAB_myF4K=VFL=VF41k2=qNgTQ=r0AzojmBin=ejVHT9A-wat3A@mail.gmail.com>
On 4/9/19 9:45 AM, Sherrylyn Branchaw wrote:
> If a table has 1.8M rows in reality, yet pg_stat_get_live_tuples()
> returns 1.8K, does it matter to the performance of the database, as long
> as pg_class.reltuples is the right order of magnitude?
What version of Postgres?
How are you getting at the 1.8M number?
>
> The query planner seems to use the accurate estimate, but what about the
> autovacuum daemon? Or anything else?
>
> In short, is pg_stat_get_live_tuples() (and the views that invoke it)
> used by any built-in tooling, or is it just there for the user to do
> monitoring?
>
> Thanks,
> Sherrylyn
--
Adrian Klaver
adrian.klaver@aklaver.com
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, sbranchaw@gmail.com
Subject: Re: Does pg_stat_get_live_tuples() matter?
In-Reply-To: <ea347682-eb9b-fad5-cf82-4abecf93954d@aklaver.com>
References: <CAB_myF4K=VFL=VF41k2=qNgTQ=r0AzojmBin=ejVHT9A-wat3A@mail.gmail.com> <ea347682-eb9b-fad5-cf82-4abecf93954d@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