Re: Regarding pg_stat_statements

From: Ronan Dunklau <ronan(dot)dunklau(at)dalibo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Sreerama Manoj <manoj(dot)sreerama973(at)gmail(dot)com>
Subject: Re: Regarding pg_stat_statements
Date: 2015-03-13 16:20:09
Message-ID: 3145985.PtMo8cKxyI@ronan.dunklau.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Le vendredi 13 mars 2015 14:59:28 Sreerama Manoj a écrit :
> Hi,
> As we know that "pg_stat_statements" will monitor the queries after
> normalizing the queries(Removes the values present in query). I want to
> know is there a way to store those normalized values because I want to
> check the type of data(values) ,range of data that is being hit to the
> database. I am using Postgres 9.4

Hello.

You may be interested in the pg_qualstats extension:
https://github.com/dalibo/pg_qualstats

The purpose of the extension is to track values like pg_stat_statements, but
at the predicate level rather than statement level. It stores normalized
predicates as well as constants.

The documentation is here:

http://powa.readthedocs.org/en/latest/stats_extensions/pg_qualstats.html#pg-qualstats

It won't give you all normalized values though, only those present in
predicates.

--
Ronan Dunklau
http://dalibo.com - http://dalibo.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Inder 2015-03-13 17:34:30 Re: Basic Question on Point In Time Recovery
Previous Message Matthew McGuire 2015-03-13 15:14:15 Re: Fwd: Regarding pg_stat_statements

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2015-03-13 16:30:57 Re: mogrify and indent features for jsonb
Previous Message Andrew Gierth 2015-03-13 15:46:15 Re: Final Patch for GROUPING SETS