proposal psql \gdesc
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2017-04-28T04:08:44Z
Lists: pgsql-hackers
Hi
Sometimes I have to solve the result types of some query. It is invisible
in psql. You have to materialize table or you have to create view. Now,
when we can enhance \g command, we can introduce query describing
some like
select a, b from foo
\gdesc
| type | length | collation | ....
------------------------------------------------
a | varchar | 30 |
b | numeric | 20 |
What do you think about this idea?
Regards
Pavel
Commits
-
Add \gdesc psql command.
- 49ca462eb165 11.0 landed