Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\d+ metacommand doesn't indicate the name/type of what it's displaying #1478

Open
2 of 3 tasks
NasaGeek opened this issue Aug 28, 2024 · 0 comments
Open
2 of 3 tasks

Comments

@NasaGeek
Copy link

NasaGeek commented Aug 28, 2024

Description

In psql, when you run \d+ <name>, the first line of output will look like this

                                   Materialized view "public.matviewname"
                                                  View "public.viewname"
                                                                   Table "public.tablename"

This is useful information for exploration. While you can typically infer whether something is a table or view simply by checking if there's a view definition included in the output, I could find no way to distinguish between a View and a Materialized View in pgcli's current output.

Your environment

I don't think that the environment is all that relevant, as this is not really a bug, just a feature opportunity. It couldn't hurt, though:

  • Ubuntu 22.04
  • pgcli 4.1.0
  • I have it installed through nix, getting the full list of dependency versions is outside of my wheelhouse.
  • Please provide your OS and version information.
  • Please provide your CLI version.
  • What is the output of pip freeze command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants