[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: Max connections reached without max connections reached
From:       James Sewell <james.sewell () jirotech ! com>
Date:       2021-12-21 0:25:54
Message-ID: CAANVwEsZf0Y1XR1ePtMu_aoHdAKFi3Z2TZzOqFPiUqD0n7a7ug () mail ! gmail ! com
[Download RAW message or body]

> Ok it is possible, I've got a C extension up and running which hooks
> ExecutorStart, then once for each TX ( I monitor the nesting depth like in
> pg_stat_statements, and only attach at the top level) attaches a sub
> transaction callback, tracking start subtransaction events and incrementing
> a counter / keeping track of the worst offenders in a hashmap.
>

Sorry that should be ExecutorRun  - although I'm a little confused about
which is the correct choice.

-James

-- 
The contents of this email are confidential and may be subject to legal or 
professional privilege and copyright. No representation is made that this 
email is free of viruses or other defects. If you have received this 
communication in error, you may not copy or distribute any part of it or 
otherwise disclose its contents to anyone. Please advise the sender of your 
incorrect receipt of this correspondence.

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
class="gmail_quote"><div>Ok it is possible, I&#39;ve got a C extension up and running \
which hooks ExecutorStart, then once for each TX ( I monitor the nesting depth like \
in pg_stat_statements, and only attach at the top level) attaches a sub transaction \
callback, tracking start subtransaction events and incrementing a counter / keeping \
track of the worst offenders in a \
hashmap.</div><div></div></div></div></blockquote><div><br></div><div>Sorry that \
should be ExecutorRun   - although I&#39;m a little confused about which is the \
correct choice.</div><div><br></div><div>-James</div></div></div>

<br>
<hr style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.5455px;line-height:normal"><font \
size="1" color="Gray" face="Arial" style="line-height:normal">The contents of this \
email are confidential and may be subject to legal or professional privilege and \
copyright. No representation is made that this email is free of viruses or other \
defects. If you have received this communication in error, you may not copy or \
distribute any part of it or otherwise disclose its contents to anyone. Please advise \
the sender of your incorrect receipt of this correspondence.</font>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic