https://authzed.com logo
Title
p

poulpi

01/06/2023, 4:41 PM
And that to make pgx works with pgbouncer, some additional connConfig as to be made, like: func TestPgbouncerStatementCacheDescribe(t *testing.T) { connString := os.Getenv("PGX_TEST_PGBOUNCER_CONN_STRING") if connString == "" { t.Skipf("Skipping due to missing environment variable %v", "PGX_TEST_PGBOUNCER_CONN_STRING") } config := mustParseConfig(t, connString) config.DefaultQueryExecMode = pgx.QueryExecModeCacheDescribe // This seems to be important config.DescriptionCacheCapacity = 1024 testPgbouncer(t, config, 10, 100) }