Re: Show type in psql SELECT

From: Greg Stark <stark(at)mit(dot)edu>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Mike Toews <mwtoews(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Show type in psql SELECT
Date: 2013-02-25 00:38:36
Message-ID: CAM-w4HMTayK74Z7wB32sVjrH8fPR0pnjfHGMb2MvO-3Mu0jLPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Feb 24, 2013 at 11:14 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On Sat, 2013-02-23 at 12:09 +1300, Mike Toews wrote:
>> Has anyone else thought this was a missing feature?
>
> I have.

It never occurred to me before what exactly was missing but I did
regularly have to do CREATE TABLE AS (query...) just to see what types
would result. It does seem like having a way to et psql to print that
info without doing any DDL would be appropriate.

I don't have a clear idea how to format it though. It could be in a
second header row under the column names? Or it could be in a separate
block following or preceding the result set? Or it could be only in \x
mode as a third column in addition to the name and value?

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mike Toews 2013-02-25 00:54:33 Re: Show type in psql SELECT
Previous Message Jim Nasby 2013-02-25 00:27:19 Re: auto_explain WAS: RFC: Timing Events