pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Rushikesh socha <rushikesh.s@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Exact same output - pg_stat_statements
Date: Mon, 9 Jan 2023 11:15:06 +0100
Message-ID: <Y7vpKiKXw1PdAlfg@depesz.com> (raw)
In-Reply-To: <20230103055217.lyxlchy26jtvhnwj@jrouhaud>
References: <CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com>
	<Y7LdVeKa2kq0gOPq@depesz.com>
	<20230103055217.lyxlchy26jtvhnwj@jrouhaud>

On Tue, Jan 03, 2023 at 01:52:17PM +0800, Julien Rouhaud wrote:
> Resetting the data adds some noticeable overhead as newly added entries will
> need to generate a normalize query string and so on.  What most people do is
> taking regular snapshots of pg_stat_statements (and other stats) view and then
> compare the snapshots.  There are a few open source projects doing that
> available.

Why do you assume that the cost of normalization query string will be in
any way measurable? Especially in comparison do extra cost of doin math
on potentially thousands of rows?

Best regards,

depesz






view thread (6+ messages)

Message-ID: <Y7vpKiKXw1PdAlfg@depesz.com>
Permalink:  ../Y7vpKiKXw1PdAlfg@depesz.com/
Also on:    postgresql.org/message-id/Y7vpKiKXw1PdAlfg@depesz.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: depesz@depesz.com, rjuju123@gmail.com, rushikesh.s@gmail.com
  Subject: Re: Exact same output - pg_stat_statements
  In-Reply-To: <Y7vpKiKXw1PdAlfg@depesz.com>
  References: <CANgP4OLwgNE8isVwah5+3Aywh7Dq9N=8oHOBxOAzVtz8+G9DTw@mail.gmail.com> <Y7LdVeKa2kq0gOPq@depesz.com> <20230103055217.lyxlchy26jtvhnwj@jrouhaud> <Y7vpKiKXw1PdAlfg@depesz.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