Re: Add min and max execute statement time in pg_stat_statement

From: Rajeev rastogi <rajeev(dot)rastogi(at)huawei(dot)com>
To: KONDO Mitsumasa <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp>, Mitsumasa KONDO <kondo(dot)mitsumasa(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add min and max execute statement time in pg_stat_statement
Date: 2014-01-29 08:31:54
Message-ID: BF2827DCCE55594C8D7A8F7FFD3AB7713DDBDA35@SZXEML508-MBX.china.huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 28th January, Mitsumasa KONDO wrote:
> >>> 2014-01-26 Simon Riggs <simon(at)2ndquadrant(dot)com
> >>> <mailto:simon(at)2ndquadrant(dot)com>>
> >>>
> >>> On 21 January 2014 19:48, Simon Riggs <simon(at)2ndquadrant(dot)com
> >>> <mailto:simon(at)2ndquadrant(dot)com>> wrote:
> >>> > On 21 January 2014 12:54, KONDO Mitsumasa
> >> <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp
> >>> <mailto:kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp>> wrote:
> >>> >> Rebased patch is attached.
> >>> >
> >>> > Does this fix the Windows bug reported by Kumar on
> 20/11/2013 ?
> >> Sorry, I was misunderstanding. First name of Mr. Rajeev Rastogi is
> >> Kumar! I searched only e-mail address and title by his name...
> >>
> >> I don't have windows compiler enviroment, but attached patch might
> be
> >> fixed.
> >> Could I ask Mr. Rajeev Rastogi to test my patch again?
> >
> > I tried to test this but I could not apply the patch on latest git
> HEAD.
> > This may be because of recent patch (related to pg_stat_statement
> only
> > "pg_stat_statements external query text storage "), which got
> > committed on 27th January.
> Thank you for trying to test my patch. As you say, recently commit
> changes pg_stat_statements.c a lot. So I have to revise my patch.
> Please wait for a while.
>
> By the way, latest pg_stat_statement might affect performance in
> Windows system.
> Because it uses fflush() system call every creating new entry in
> pg_stat_statements, and it calls many fread() to warm file cache. It
> works well in Linux system, but I'm not sure in Windows system. If you
> have time, could you test it on your Windows system? If it affects
> perfomance a lot, we can still change it.

No Issue, you can share me the test cases, I will take the performance report.

Thanks and Regards,
Kumar Rajeev Rastogi

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Björn Harrtell 2014-01-29 08:37:39 Re: Patch: regexp_matches variant returning an array of matching positions
Previous Message Christian Kruse 2014-01-29 08:12:48 Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()