X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id CD499D1C4DC for ; Tue, 22 Jul 2003 05:11:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 59983-05 for ; Tue, 22 Jul 2003 05:11:53 +0000 (GMT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 1F87DD1C4D0 for ; Tue, 22 Jul 2003 02:11:53 -0300 (ADT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.6) with ESMTP-TLS id 11138; Mon, 21 Jul 2003 21:36:45 -0700 Message-ID: <3F1CC71B.4070309@joeconway.com> Date: Mon, 21 Jul 2003 22:09:47 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Cristian Cappo A." Cc: pgsql-sql@postgresql.org Subject: Re: How access to array component References: <3F180992.5070400@cnc.una.py> <3F1C0407.32205.173766B@localhost> In-Reply-To: <3F1C0407.32205.173766B@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/314 X-Sequence-Number: 14428 Cristian Cappo A. wrote: > Tried, but... > >> select (foo(10::int2,20::int2))[1]; > >> ERROR: parser: parse error at or near "[" at character 32 > > I'm using the version 7.3.3 Sorry, it works on 7.4devel, so I thought it might on 7.3 as well. In any case, this works on 7.3.3: test=# select f1[1] from (select foo(10::int2, 20::int2) as f1) as ss; f1 ---- 1 (1 row) HTH, Joe