From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gustav Karlsson <gustav.karlsson@bekk.no>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: [ADMIN] Is it safe to run pg_stat_reset() i Prod?
Date: Mon, 17 Dec 2018 09:28:34 -0500
Message-ID: <27532.1545056914@sss.pgh.pa.us> (raw)
In-Reply-To: <5BCD9CB6-A4DE-4360-9C13-23A06091A52A@bekk.no>
References: <5BCD9CB6-A4DE-4360-9C13-23A06091A52A@bekk.no>
Gustav Karlsson <gustav.karlsson@bekk.no> writes:
> Am tracking unused indices and wondering if it is safe to run pg_stat_reset() i production? I.e. will pg_stat_reset() affect stats used by the query planner in any way which could affect performance?
The planner doesn't look at any of that data.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, gustav.karlsson@bekk.no
Subject: Re: [ADMIN] Is it safe to run pg_stat_reset() i Prod?
In-Reply-To: <27532.1545056914@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