go-gorm / go-gorm/postgres

unsupported startup parameter: statement_cache_mode

Open
#219 1 comment 0 reactions 1 assignee Claimed by @jinzhu View on GitHub
type:question
Dominant language
Go
Stars
297
Forks
155
Avg merge
27m
Merged PRs (30d)
2

Description

## Your Question

We connect the PostgreSQL server via Pgbouncer.
Our connection string (to the Pgbouncer) contains the parameter **_statement_cache_mode=describe_** to prevent the creation of prepared statements.
After a recent upgrade
```
gorm.io/driver/postgres v1.3.9 => v1.5.3
gorm.io/gorm v1.23.8 => v1.25.4
```
our code stopped working with this error:
```
failed to connect to `host=pgbouncer.service user=pgbouncer_user database=metadata`: server error (FATAL: unsupported startup parameter: statement_cache_mode (SQLSTATE 08P01))
```

Could you please advise what this parameter should be replaced with?

## The document you expected this should be explained

## Expected answer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.