Re: Show type in psql SELECT - Mailing list pgsql-hackers

From Erik Rijkers
Subject Re: Show type in psql SELECT
Date
Msg-id 13b89d7b9d03e8c8075832b4ff515cf6.squirrel@webmail.xs4all.nl
Whole thread Raw
In response to Show type in psql SELECT  (Mike Toews <mwtoews@gmail.com>)
List pgsql-hackers
On Sat, February 23, 2013 00:09, Mike Toews wrote:
>
> Type info can be viewed with "\d mytable", however often I'd like to see
> the type (and typmod) info in SELECT queries with psql, similar to pgAdmin
> III. For example:
>
> my_db=# \pset type
> my_db=# SELECT * FROM my_table;
>  gid     | description            | width
>  integer | character varying(255) | numeric(6,3)
> ---------+------------------------+--------------
>        1 | Hello                  | 3.220
> (1 row)
>
> Has anyone else thought this was a missing feature?
>

As an occasional pgAdmin user, I have often thought that this feature should be added to psql.  It
would save time going back and forth between different views (especially with broad tables).  I
would be glad to have the possibility. It would have to be optional, of course.

In short: +1 from me.


thanks,

Erik Rijkers






pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: New hooks for snapshot and transaction ID acquisition from external source
Next
From: Tom Lane
Date:
Subject: Re: bugfix: --echo-hidden is not supported by \sf statements