summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/pgxpool/conn.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-05-27 09:35:41 +0000
committerLibravatar GitHub <noreply@github.com>2024-05-27 09:35:41 +0000
commit0a18c0d802ce76cac5eb4cf2dae53c6e42536601 (patch)
tree8d28ddc527edcb323cbdba9330e7b705bdcf6c59 /vendor/github.com/jackc/pgx/v5/pgxpool/conn.go
parent[performance] update storage backend and make use of seek syscall when availa... (diff)
downloadgotosocial-0a18c0d802ce76cac5eb4cf2dae53c6e42536601.tar.xz
[chore]: Bump github.com/jackc/pgx/v5 from 5.5.5 to 5.6.0 (#2929)
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/pgxpool/conn.go')
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgxpool/conn.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/pgxpool/conn.go b/vendor/github.com/jackc/pgx/v5/pgxpool/conn.go
index 36f90969e..38c90f3da 100644
--- a/vendor/github.com/jackc/pgx/v5/pgxpool/conn.go
+++ b/vendor/github.com/jackc/pgx/v5/pgxpool/conn.go
@@ -26,6 +26,10 @@ func (c *Conn) Release() {
res := c.res
c.res = nil
+ if c.p.releaseTracer != nil {
+ c.p.releaseTracer.TraceRelease(c.p, TraceReleaseData{Conn: conn})
+ }
+
if conn.IsClosed() || conn.PgConn().IsBusy() || conn.PgConn().TxStatus() != 'I' {
res.Destroy()
// Signal to the health check to run since we just destroyed a connections