Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHzkD-00045x-AV for pgsql-sql@arkaria.postgresql.org; Mon, 24 Feb 2014 17:55:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WHzkC-0000NT-QW for pgsql-sql@arkaria.postgresql.org; Mon, 24 Feb 2014 17:55:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHzkB-0000MQ-O8 for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 17:55:07 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHzk8-0008Mj-1v for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 17:55:07 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WHzk7-0006bz-AL for pgsql-sql@postgresql.org; Mon, 24 Feb 2014 09:55:03 -0800 Date: Mon, 24 Feb 2014 09:55:03 -0800 (PST) From: AlexK To: pgsql-sql@postgresql.org Message-ID: <1393264503312-5793336.post@n5.nabble.com> Subject: Can I specify a copying type for an array element MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.5 (+++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org If I want to return the whole array from my function, I can specify my_table.array_column%TYPE. If my function returns an element, can I say something like element_type(my_table.array_column%TYPE) when I declare the return type? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Can-I-specify-a-copying-type-for-an-array-element-tp5793336.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql