Execute the same SQL against multiple selected databases/connections

Đang mở
#10,201 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
postgresql, python
Lĩnh vực
database, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
3.9k
Fork
918
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pgadmin-org/pgadmin4

Tất cả issue của pgadmin-org/pgadmin4

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.