Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9CF1B659DA3 for ; Thu, 10 Jun 2010 19:00:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 98452-01-4 for ; Thu, 10 Jun 2010 22:00:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 1E7C9659D28 for ; Thu, 10 Jun 2010 19:00:42 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5AM0Zq14165; Thu, 10 Jun 2010 18:00:35 -0400 (EDT) From: Bruce Momjian Message-Id: <201006102200.o5AM0Zq14165@momjian.us> Subject: Re: Special column trivia In-Reply-To: <17327.1275820215@sss.pgh.pa.us> To: Tom Lane Date: Thu, 10 Jun 2010 18:00:35 -0400 (EDT) CC: Greg Smith , pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/15 X-Sequence-Number: 5583 Tom Lane wrote: > > What got me reading that section was a rather weird documentation > > question/addition from Edmund Horner. He noted that the following works > > on PG8.4 and 9.0: > > > postgres=# select (row(1,2)).name; > > This is the cast-a-composite-type-to-string-type issue that's come up in > several guises before, eg most recently at > http://archives.postgresql.org/pgsql-general/2010-05/msg01126.php Do we need additional documentation? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +