Skip to content

Commit fdaaed8

Browse files
committed
fix: moving to using simple protocol for short term pgbouncer fix
1 parent c9481c6 commit fdaaed8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"os"
1111
"time"
1212

13+
"github.com/jackc/pgx/v5"
1314
"github.com/jackc/pgx/v5/pgxpool"
1415
"github.com/jaegertracing/jaeger/plugin/storage/grpc/shared"
1516
"github.com/jaegertracing/jaeger/storage/dependencystore"
@@ -91,6 +92,8 @@ func ProvidePgxPool() any {
9192
connectTimeoutDuration := time.Second * 10
9293
pgxconfig.ConnConfig.ConnectTimeout = connectTimeoutDuration
9394

95+
pgxconfig.ConnConfig.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
96+
9497
ctx, cancelFn := context.WithTimeout(context.Background(), connectTimeoutDuration)
9598
defer cancelFn()
9699

0 commit comments

Comments
 (0)