Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1druOO-0004QE-Rr for pgsql-docs@arkaria.postgresql.org; Tue, 12 Sep 2017 23:14:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1druOO-0007ID-FV for pgsql-docs@arkaria.postgresql.org; Tue, 12 Sep 2017 23:14:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1druOO-0007F4-0x for pgsql-docs@postgresql.org; Tue, 12 Sep 2017 23:14:56 +0000 Received: from mail.wordtothewise.com ([2001:470:1:6d::9a]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1druOL-0005jf-1C for pgsql-docs@postgresql.org; Tue, 12 Sep 2017 23:14:54 +0000 Received: from [192.168.80.21] (204.11.227.194.static.etheric.net [204.11.227.194]) by mail.wordtothewise.com (Postfix) with ESMTPSA id A9D0023379 for ; Tue, 12 Sep 2017 16:15:20 -0700 (PDT) From: Steve Atkins Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: 4.2.9. Type Casts - documentation improvement Date: Tue, 12 Sep 2017 16:14:51 -0700 References: <20170905021712.25640.86402@wrigleys.postgresql.org> <20170912223325.GC6766@momjian.us> To: pgsql-docs@postgresql.org In-Reply-To: <20170912223325.GC6766@momjian.us> Message-Id: <96018C79-ABA3-41EB-A327-4F509D224A2A@blighty.com> X-Mailer: Apple Mail (2.3273) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org > On Sep 12, 2017, at 3:33 PM, Bruce Momjian wrote: >=20 > On Tue, Sep 5, 2017 at 02:17:12AM +0000, artejera@gmail.com wrote: >> The following documentation comment has been logged on the website: >>=20 >> Page: https://www.postgresql.org/docs/9.2/static/sql-syntax.html >> Description: >>=20 >> Hi, >>=20 >> There seems to be no explicit documentation of the useful construct: >>=20 >> Select tt.*::text from tt >>=20 >> Also related: 4.2.13. Row Constructors >>=20 >> Congrats for your project. Yours AT >=20 > Woh, I was not aware that worked, e.g.: >=20 > test=3D> 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,) >=20 > Any idea where this should be documented. It is useful? It's the output format of a composite type, isn't it? steve=3D# select pg_language 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,12656,12657,12658,) (4 rows) https://www.postgresql.org/docs/current/static/rowtypes.html might be the p= lace to expand on it, if so. (And converting to hstore or json or csv are o= ther useful things to discuss too, maybe). Cheers, Steve --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs