-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable prepared statements #389
Comments
pgbouncer should be able to deal with what pq does if the (unfortunately undocumented) option binary_parameters added here is turned on. This has, however, some effects on your application; whenever it passes a byte slice as a parameter, it's assumed to be in the binary input format instead of textual. |
Thanks @johto |
If you turn binary_parameters on, you cannot save JSONB data in PG. |
@rskumar did you ever find a solution for this? We are hoping to use pgbouncer but we also use JSONB. |
Maybe to add to this: e.g. jsonbData, err = json.Marshal(someStruct)
row := db.QueryRow(
UpdateQuery,
id,
string(jsonbData),
) |
I had some troubles integrating with a pgbouncer that did not had support for prepared statements, I researched a little and found this:
http://stackoverflow.com/questions/17614441/pq-driver-prepared-statement-does-not-exist
Is there a way to disable prepared statements on the driver ?
The text was updated successfully, but these errors were encountered: