dbcli / dbcli/pgcli

\d+ doesn't show options of a table while psql does

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

Description

## Description
In psql, `\d+` shows options of a table. In pgcli, it didn't.

**pgcli:**
image

**psql:**
image

## Your environment

```
$ zsh --version
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
$ omz version
master (b81915d)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ pip freeze | grep pgcli
pgcli==3.5.0
```

---

I could propose a PR to fix this if you think it's acceptable.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the \\d+ behavior in pgcli and comparing its table output with psql, using the issue screenshots as the expected comparison. Trace the existing \\d+ command handling and identify where table options are omitted; done means pgcli displays the table options that psql displays.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
cli, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.