Can psql show the column type of a result ?

From: "Nils O(dot) Selåsdal" <noselasd(at)asgaard(dot)homelinux(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Can psql show the column type of a result ?
Date: 2010-09-22 19:52:03
Message-ID: 4C9A5E63.6020705@asgaard.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
I'm wondering if there's a way to show the column type of a result with
psql, e.g.

> select sum(r) from mytable;
r
-------
101.0

I'd like to see the type of the 'r' column.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-09-22 19:58:46 Re: Nested literal parsing rules?
Previous Message Vick Khera 2010-09-22 18:58:07 Re: How about synchronous notifications?