[Solved] Error: "Prepared statement ... already exists" when repeating query
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, postgresql
调研方向
从 issue 正文开始,其中记录了将外部 Postgres 连接池与 PostGraphile 一起使用时出现的 prepared statement 错误。没有指定文档文件或测试,因此首先找到相关的连接池或配置文档。完成的标准是:使用 POSTGRAPHILE_PREPARED_STATEMENT_CACHE_SIZE=0 的 workaround 以及直接连接数据库的指导都已得到清晰记录。
由索引模型根据 Issue 内容生成。
描述
I just tried the default docker image with Digital Ocean's hosted Postgres (which recommends using connection pools), and ran into the error "Prepared statement ... already exists" when repeating the same query.
@benjie quickly pointed out the following on Discord:
PostGraphile uses prepared statements as a minor performance optimisation, but this causes issues if you’re running external connection pools in addition to PostGraphile’s native connection pooling. You can disable prepared statements by setting the environment variable POSTGRAPHILE_PREPARED_STATEMENT_CACHE_SIZE=0
In my case, since PostGraphile already has connection pools built-in, I just connected directly to the database rather than the Postgres connection pool, and everything works fine.
I wasn't sure where this might go in the documentation, so just quickly posting this as an issue in case it helps anyone.
- 主要语言
- SCSS
- 星标
- 27
- 派生
- 124
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphile/graphile.github.io 的其他 Issue
-
help wanted quick
难度 2/5 1-3 小时 新手友好度 38/100
graphile/graphile.github.io#401 · 1 条评论 · 1 个 reaction ·
-
website: Update details on homepage and sponsor page可能重新可做 @jemgillam 于 1119 天前认领,目前没有进行中的 PR。 未关闭quick
graphile/graphile.github.io#399 · 4 条评论 · 已指派 1 人 ·
-
sponsor page: New wording around Grafast needed!可能重新可做 @jemgillam 于 1149 天前认领,目前没有进行中的 PR。 未关闭
graphile/graphile.github.io#393 · 1 个 reaction · 已指派 1 人 ·
-
难度 2/5 1-3 小时 新手友好度 38/100
graphile/graphile.github.io#341 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
graphile/graphile.github.io#273 · 2 条评论 ·
查看 graphile/graphile.github.io 的全部 Issue
相似的 Issue
-
relations-v2 Drizzle schema generator still emits duplicate unique indexes for unique indexed fields可能已有人在做 @emmanuel-log 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
better-auth/better-auth#12991 · 1 个 reaction ·
维护者通常 1 天内回复
-
task
难度 2/5 1-3 小时 新手友好度 78/100
freelawproject/litigant-portal#1274 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
lightningdevkit/rust-lightning#4767 ·
-
Merge discards entry history (and the other side’s version) when “Max. history items” is unlimited未关闭
难度 2/5 1-3 小时 新手友好度 72/100
keepassxreboot/keepassxc#14157 ·
维护者通常 1 天内回复