Execute the same SQL against multiple selected databases/connections

オープン
#10,201 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pgadmin-org/pgadmin4 のほかの issue

pgadmin-org/pgadmin4 の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。