Execute the same SQL against multiple selected databases/connections

未关闭
#10,201 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
postgresql, python
领域
database, tooling

调研方向

Start by locating pgAdmin's Query Tool and the existing connection or database selection flow. Define how selected databases are chosen, how SQL is executed sequentially, and how separate results and errors are presented; done means the same current SQL can run against multiple selected connections.

由索引模型根据 Issue 内容生成。

描述

Feature

Hi,
I'm frequently working with multiple PostgreSQL databases that have the same schema (multi-tenant environments, templete databases).

A common task is running the same maintenance or diagnostic SQL against several databases. At the moment I have to:

expand each database
open a Query Tool for each one
paste the same SQL
execute it separately

This becomes repetitive when working with several databases.

It would be very useful if the Query Tool could execute the current SQL against multiple selected databases/connections.

For example:

Execute → Execute on Multiple Databases...
Select one or more open connections/databases.
Run the SQL sequentially.
Show the result (or any error) for each database separately.

I'm not suggesting cross-database SQL execution inside PostgreSQL itself—just having pgAdmin send the same query to multiple selected connections one after another.
I know this can already be done using psql or custom scripts, but having it built into pgAdmin would make these routine tasks much more convenient.
This would make routine administration tasks much faster for environments with many similar databases.

Thanks for considering it.

主要语言
Python
星标
3.9k
派生
914
平均合并
2 天 12 小时
30 天内合并 PR
35

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pgadmin-org/pgadmin4 的其他 Issue

查看 pgadmin-org/pgadmin4 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。