Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVk0l-0001Y5-1l for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2017 19:42:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dVk0k-0002PQ-It for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2017 19:42:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dVk0k-0002PH-59 for pgsql-hackers@postgresql.org; Thu, 13 Jul 2017 19:42:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dVk0g-0003fZ-Ir for pgsql-hackers@postgresql.org; Thu, 13 Jul 2017 19:42:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v6DJgmm9015151; Thu, 13 Jul 2017 15:42:48 -0400 From: Tom Lane To: "David G. Johnston" cc: "pgsql-hackers@postgresql.org" Subject: Re: Domains and arrays and composites, oh my In-reply-to: References: <4206.1499798337@sss.pgh.pa.us> <12364.1499973554@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 13 Jul 2017 12:36:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15149.1499974968.1@sss.pgh.pa.us> Date: Thu, 13 Jul 2017 15:42:48 -0400 Message-ID: <15150.1499974968@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org "David G. Johnston" writes: > On Thursday, July 13, 2017, Tom Lane wrote: >> regression=# select * from fdc(); >> fdc >> ------- >> (1,2) >> (1 row) > Select (fdc).* from fdc(); is considerably more intuitive that the cast. > Does that give the expected multi-column result? Yeah, it does, although I'm not sure how intuitive it is that the parentheses are significant ... regression=# select * from fdc(); fdc ------- (1,2) (1 row) regression=# select fdc from fdc(); fdc ------- (1,2) (1 row) regression=# select fdc.* from fdc(); fdc ------- (1,2) (1 row) regression=# select (fdc).* from fdc(); r | i ---+--- 1 | 2 (1 row) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers