dbcli / pgcli

Postgres CLI with autocompletion and syntax highlighting
http://pgcli.com
BSD 3-Clause "New" or "Revised" License
12.04k stars 553 forks source link

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

Open NasaGeek opened 1 month ago

NasaGeek commented 1 month ago

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: