Skip to content

Commit 5b8d35d

Browse files
committed
Merge branch '192-pgx-prepared-statements' into 'master'
fix: disable prepared statements caching by default (#192) Closes #192 See merge request postgres-ai/joe!183
2 parents b142cf9 + 4b5af5b commit 5b8d35d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/services/msgproc/dblab.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ func initConn(ctx context.Context, dblabClone models.Clone) (*pgxpool.Pool, *pgx
184184

185185
connectionConfig.MaxConnLifetime = maxConnLifetime
186186
connectionConfig.MaxConnIdleTime = maxConnIdleTime
187+
connectionConfig.ConnConfig.PreferSimpleProtocol = true
187188

188189
pool, err := pgxpool.ConnectConfig(context.Background(), connectionConfig)
189190
if err != nil {

0 commit comments

Comments
 (0)