Skip to content

Disabling prepared statements for pgbouncer support #256

@film42

Description

@film42

Hey there!

I see go-kallax is using squirrel's statement cacher, which is a good thing, but will not work when using pgbouncer in transaction pooling mode. The lib/pq maintainers have added support to pass binary_parameters=yes to disable prepared statements for this very reason. However, the statement cacher explicitly uses a prepared statement for each query, which isn't something lib/pq can work around. Would you consider accepting a patch that optionally disables the statement cacher to avoid prepared statements to work with pgbouncer in transaction pooling mode? If so, I'll get right on it. Thanks!

cc @roobre

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions