Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4A44D1337B49 for ; Thu, 3 Feb 2011 15:31:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 53955-07 for ; Thu, 3 Feb 2011 19:31:22 +0000 (UTC) X-Greylist: delayed 00:32:50.908679 by SQLgrey-1.7.6 Received: from mail.fmed.uba.ar (mail.fmed.uba.ar [157.92.152.1]) by mail.postgresql.org (Postfix) with ESMTP id 0C7251337B5E for ; Thu, 3 Feb 2011 15:31:22 -0400 (AST) Received: from [157.92.152.105] (unknown [157.92.152.105]) by mail.fmed.uba.ar (Postfix) with ESMTP id 00C394A4885 for ; Thu, 3 Feb 2011 16:56:16 -0200 (ARST) Subject: using of select (myfunction()).* is so slow From: Gerardo Herzig To: pgsql-sql@postgresql.org Content-Type: text/plain; charset="UTF-8" Date: Thu, 03 Feb 2011 15:40:02 -0300 Message-ID: <1296758402.30254.6.camel@inca.fmed.uba.ar> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/7 X-Sequence-Number: 35083 Hi all, im using a function of my own in a subquery, and when wonderig about the slowliness of this one, y relalize that: test=# SELECT (_xxfunction(854,'711H',11,false)).* ; (4 filas) --Result DELETED Duración: 1069,465 ms glyms=# SELECT * from _xxfunction(854,'711H',11,false) ; (4 filas) Duración: 228,699 ms For privacy reasons, i just deleted the result and the function name, but the resulst are obviously exactly the same, and the ().* form (which i needed) is taking so much more...there is a reason why? A workaround? Thanks! Gerardo