Feature request: A connection property to retreive host name used in specific connection
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先检查 asyncpg 的连接 API 和池 API,重点关注多个主机和 target_session_attrs 如何选择连接。定义返回的主机名应表示什么,然后针对通过两种受支持路径创建的连接,将结果与主机列表进行核对。
由索引模型根据 Issue 内容生成。
描述
When multiples hosts are specified, either pool or connection could use any of them (depending on target_session_attrs).
It would be nice to have a way to retrieve the actual (connected) host name, as it was provided in the list, that was used to create a specific connection.
Currently, I found no easy way how to do this. Of course, it is possible to use SELECT inet_server_addr() but this only returns an address, which is not always useful.
Thank you!
- 主要语言
- Python
- 星标
- 8.1k
- 派生
- 474
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 17
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MagicStack/asyncpg 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
MagicStack/asyncpg#1342 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 56/100
MagicStack/asyncpg#1340 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 28/100
MagicStack/asyncpg#1337 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
MagicStack/asyncpg#1330 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 38/100
MagicStack/asyncpg#1322 ·
维护者通常 1 天内回复
查看 MagicStack/asyncpg 的全部 Issue
相似的 Issue
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31098 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
难度 1/5 1 小时以内 新手友好度 88/100
NousResearch/hermes-agent#132042 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepset-ai/haystack#13092 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
feder-cr/invisible_playwright_mcp#1408 ·
维护者通常 1 天内回复