Option to enable expanded display mode for 'inspect db' commands
Is your feature request related to a problem? Please describe.
At the moment, what supabase inspect db spits out is quite hard to read. Turning on the expanded display mode will make it more readable. In psql, you can enable it as below.
\x on
Describe the solution you'd like
Options to enable and disable the expanded display mode.
-
--expanded-display-mode(to enable) -
--no-expanded-display-mode(to disable)
I personally think the expanded display mode should be the default mode for all supabase inspect db commands.
Describe alternatives you've considered
With --debug on, extract the raw query from the output of each supabase inspect db command, and run it in psql instead.
Additional context
None
References:
- psql (offical documentation): https://www.postgresql.org/docs/current/app-psql.html
- Crunchy Data also recommends the expanded mode: https://www.crunchydata.com/developers/playground/query-performance-analytics
I personally think the expanded display mode should be the default mode for all
supabase inspect dbcommands.
that read data from pg_stat_statements to be precise (because there are others that don't where the expanded diplay mode would not make much difference)