Re: 4.2.9. Type Casts - documentation improvement

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: artejera(at)gmail(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: 4.2.9. Type Casts - documentation improvement
Date: 2017-09-12 22:33:25
Message-ID: 20170912223325.GC6766@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, Sep 5, 2017 at 02:17:12AM +0000, artejera(at)gmail(dot)com wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.2/static/sql-syntax.html
> Description:
>
> Hi,
>
> There seems to be no explicit documentation of the useful construct:
>
> Select tt.*::text from tt
>
> Also related: 4.2.13. Row Constructors
>
> Congrats for your project. Yours AT

Woh, I was not aware that worked, e.g.:

test=> SELECT pg_language.*::text FROM pg_language;
pg_language
-------------------------------------
(internal,10,f,f,0,0,2246,)
(c,10,f,f,0,0,2247,)
(sql,10,f,t,0,0,2248,)
(plpgsql,10,t,t,12319,12320,12321,)

Any idea where this should be documented. It is useful?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Steve Atkins 2017-09-12 23:14:51 Re: 4.2.9. Type Casts - documentation improvement
Previous Message Zbigniew Szmigiero 2017-09-12 19:43:02 Re: LOCAL and TIME ZONE in SET