Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

\d with wildcards doesn't say which table is which

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql, python
領域
cli, databases

調査の方向性

まず、ワイルドカードパターンに対する pgcli の \d コマンド処理と、テーブルの詳細を出力するコードを見つけます。複数の一致するテーブルで例を再現する前に、\d とワイルドカードマッチングに関する既存の CLI テストを確認します。表示された各テーブルの詳細でテーブル名が明確に識別され、その動作が回帰テストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

If \d is given a pattern with a wildcard, the details for multiple tables may be displayed — but there's nothing labelling which details are for which table.

For example:

sqlparsetemplate1> \d pg_time*
┌────────────┬──────────┬───────────┐
│ Column     │ Type     │ Modifiers │
├────────────┼──────────┼───────────┤
│ abbrev     │ text     │           │
│ utc_offset │ interval │           │
│ is_dst     │ boolean  │           │
└────────────┴──────────┴───────────┘
┌────────────┬──────────┬───────────┐
│ Column     │ Type     │ Modifiers │
├────────────┼──────────┼───────────┤
│ name       │ text     │           │
│ abbrev     │ text     │           │
│ utc_offset │ interval │           │
│ is_dst     │ boolean  │           │
└────────────┴──────────┴───────────┘
Time: 0.048s

The pg_time* pattern has matched the table names pg_timezone_abbrevs and pg_timezone_names so listed the columns in each of them, but it doesn't indicate which is which.

This is in pgcli version 4.3.0.

主要言語
Python
スター
13.4k
フォーク
613
平均マージ
12時間 45分
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

dbcli/pgcli のほかの issue

dbcli/pgcli の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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