Re: SHOW command always returns text field

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SHOW command always returns text field
Date: 2011-08-10 18:27:47
Message-ID: 1313000442-sup-851@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Excerpts from Tom Lane's message of mié ago 10 14:12:49 -0400 2011:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > I was slightly surprised the other day that the SHOW command always
> > returns a field of type text even if the underlying parameter has one of
> > the other types (int, real, etc.). Is this intentional? Would it be
> > worth refining?
>
> I'm disinclined to mess with it. One thing that couldn't easily be
> "cleaned up" is the textual output for nominally-numeric parameters
> that have units.

How about having it return a record? We could have the units in a
separate column ... and perhaps show the raw value too (I have wished to
see the raw value plenty of times). Backwards compatibility is a
serious problem though :-)

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2011-08-10 18:29:51 Re: sha1, sha2 functions into core?
Previous Message Robert Haas 2011-08-10 18:26:26 Re: sha1, sha2 functions into core?