Shell: \d PATTERN describes instead of listing relations
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- postgresql, typescript
Research direction
Start in components/shell/meta.ts at the case "\d" branch and inspect expandMeta, comparing it with the \dt and \dv handling. Re-run the supplied expandMeta examples, then verify that wildcard arguments produce query behavior, exact names still produce describe behavior, and the existing \dt behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Symptom
Help text documents \d[+] [PATTERN] with * / ? wildcards for listing relations. Any non-empty argument takes the describe path ('::regclass'), so pattern forms fail with “relation does not exist” instead of listing.
Examples:
\d user*— should list matching relations; currently describe\d *— same\dt user*— correctly lists (control)
Exact names like \d users should still describe.
Red loop (already run)
import { expandMeta } from './components/shell/meta.ts';
expandMeta('\\d user*').kind; // got "describe", expect "query"
expandMeta('\\dt user*').kind; // "query" (ok)
Where
components/shell/meta.ts—case "\\d": anyarg→kind: "describe"; no pattern vs name branch- Help copy in the same file advertises PATTERN support
Notes
Diagnosed with /diagnosing-bugs. Fix should treat args containing * / ? (and possibly bare patterns) as list queries, matching \dt / \dv behaviour.
- Dominant language
- MDX
- Stars
- 7
- Forks
- 1
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 36
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xataio/learn-postgres
-
bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
xataio/learn-postgres#150 · 1 comment ·
-
bug ready-for-agent
xataio/learn-postgres#148 · 1 comment · 1 assignee ·
All issues in xataio/learn-postgres
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
from:qa priority:P2 reliability tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
spec-kitty/spec-kitty#4874 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
automation code-quality cookie deep-report documentation improvement quick-win task-mining
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100