Skip to content

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

Description

@Smylers

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.

Activity

  1. devadathanmb commented on Jan 24, 2026

    @devadathanmb
    Contributor

    https://github.com/dbcli/pgspecial/blob/8e1f5dbd4fe932214aa0d42543b2d96707b90003/pgspecial/dbcommands.py#L1804-L1809

    Title doesn't seem to be passed while describing the relation, which seems to be the issue.

  2. devadathanmb commented on Mar 1, 2026

    @devadathanmb
    Contributor

    I have added a patch for this issue on dbcli/pgspecial#159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions