Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TS9V8-00032e-Qw for pgsql-docs@postgresql.org; Sat, 27 Oct 2012 16:44:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TS9V6-0004X7-0l for pgsql-docs@postgresql.org; Sat, 27 Oct 2012 16:44:45 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9RGihF5021288; Sat, 27 Oct 2012 12:44:43 -0400 (EDT) From: Tom Lane To: "Erik Rijkers" cc: pgsql-docs@postgresql.org Subject: Re: LATERAL synopsis In-reply-to: References: Comments: In-reply-to "Erik Rijkers" message dated "Sat, 27 Oct 2012 17:54:25 +0200" Date: Sat, 27 Oct 2012 12:44:43 -0400 Message-ID: <21287.1351356283@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/10 X-Sequence-Number: 7490 "Erik Rijkers" writes: > [ LATERAL ] function_name ( [ argument [, ...] ] ) AS ( column_definition [, ...] ) > But what does 'column_definition' stand for? (These are the only occurrences of > 'column_definition' in the manual.) This is the syntax for specifying what columns a function-returning-RECORD is actually going to return. I'm too lazy to chase down the reference and see whether it's really inconsistent or not --- but that line was like that before I added [ LATERAL ] to it ... regards, tom lane