| From: | Gurjeet Singh <gurjeet(at)singh(dot)im> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: Patch to send transaction commit/rollback stats to the stats collector unconditionally. | 
| Date: | 2014-03-19 22:01:08 | 
| Message-ID: | CABwTF4X_nyDV2Acyq129=PsWCEf7Ts6QQCeNZbSe3VXekusy=A@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Wed, Mar 19, 2014 at 4:22 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Gurjeet Singh <gurjeet(at)singh(dot)im> writes:
> > Please find attached the patch to send transaction commit/rollback stats
> to
> > stats collector unconditionally.
>
> That's intentional to reduce stats traffic.  What kind of performance
> penalty does this patch impose?  If the number of such transactions is
> large enough to create a noticeable jump in the counters, I would think
> that this would be a pretty darn expensive "fix".
>
I can't speak to the performance impact of this patch, except that it would
depend on the fraction of transactions that behave this way. Perhaps the
people who develop and/or aggressively use monitoring can pitch in.
Presumably, on heavily used systems these transactions would form a small
fraction. On relatively idle systems these transactions may be a larger
fraction but that wouldn't affect the users since the database is not under
stress anyway.
Best regards,
-- 
Gurjeet Singh http://gurjeet.singh.im/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2014-03-19 22:17:52 | Re: First-draft release notes for next week's releases | 
| Previous Message | Darren Duncan | 2014-03-19 21:16:48 | Re: [pgsql-advocacy] First draft of update announcement |