Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ func New(
Logger: pgxslog.NewLogger(cfg.logger, pgxslog.GetShouldOmitArgs()),
LogLevel: pgxslog.GetDatabaseLogLevel(),
}
// todo: We may need to re-enable this to support pg bouncer
// pgxConfig.DefaultQueryExecMode = pgx.QueryExecModeExec

// Ensures we don't send prepared statements to the server and that it is all done client-side
// This is the safest approach that allows us to support pg bouncer.
pgxConfig.DefaultQueryExecMode = pgx.QueryExecModeExec

// RegisterConnConfig returns unique connection strings, so even if the dsn is used for multiple calls to New()
// The unregister will not interfere with any other instances of Connector that are using the same input dsn
Expand Down
Loading