Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 569B0632588 for ; Sun, 4 Apr 2010 13:26:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 99682-04 for ; Sun, 4 Apr 2010 16:26:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C12B86324CD for ; Sun, 4 Apr 2010 13:26:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o34GQHFH012679; Sun, 4 Apr 2010 12:26:18 -0400 (EDT) To: =?KOI8-R?B?98nL1M/SIPfJ08zPws/Lz9c=?= cc: PostgreSQL-documentation Subject: Re: Undocumented trick in SELECT? In-reply-to: References: Comments: In-reply-to =?KOI8-R?B?98nL1M/SIPfJ08zPws/Lz9c=?= message dated "Sun, 04 Apr 2010 17:01:28 +0400" Date: Sun, 04 Apr 2010 12:26:17 -0400 Message-ID: <12678.1270398377@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/25 X-Sequence-Number: 5424 =?KOI8-R?B?98nL1M/SIPfJ08zPws/Lz9c=?= writes: > I'm sorry, but I have not found such construction into documentation: > SELECT tablename FROM tablename; It's a whole-row variable. These aren't terribly well documented but you can find descriptions of them in places. It's not standard SQL --- I think we inherited it from PostQUEL and kept it because functions on composite types don't work very well without composite variables. regards, tom lane