dbcli / dbcli/pgcli

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

Open
#1,521 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
13.4k
Forks
612
Avg merge
6d 14h
Merged PRs (30d)
10

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.