proposal psql \gdesc

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: proposal psql \gdesc
Date: 2017-04-28 04:08:44
Message-ID: CAFj8pRBhYVvO34FU=EKb=nAF5t3b++krKt1FneCmR0kuF5m-QA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2017-04-28 04:12:34 Re: PG 10 release notes
Previous Message Amit Kapila 2017-04-28 02:49:05 Re: PG 10 release notes