Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2E116133740B for ; Fri, 4 Feb 2011 08:24:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 54212-04 for ; Fri, 4 Feb 2011 12:23:56 +0000 (UTC) X-Greylist: from auto-whitelisted 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 B4A1F1337B8D for ; Fri, 4 Feb 2011 08:23:54 -0400 (AST) Received: from [157.92.152.105] (unknown [157.92.152.105]) by mail.fmed.uba.ar (Postfix) with ESMTP id 0F46B4A4C1B; Fri, 4 Feb 2011 10:21:38 -0200 (ARST) Subject: Re: using of select (myfunction()).* is so slow From: Gerardo Herzig To: Pavel Stehule Cc: pgsql-sql@postgresql.org In-Reply-To: References: <1296758402.30254.6.camel@inca.fmed.uba.ar> <1296816673.1100.2.camel@inca.fmed.uba.ar> Content-Type: text/plain; charset="UTF-8" Date: Fri, 04 Feb 2011 09:05:11 -0300 Message-ID: <1296821111.1100.3.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/18 X-Sequence-Number: 35094 El vie, 04-02-2011 a las 12:17 +0100, Pavel Stehule escribió: > >> > > > > Mmmmm ok Thanks...So there is no workaround/alternative to this? > > > > yes, (SELECT x.* from func(...) x) instead SELECT (func(...)).* > > regards > > Pavel Stehule > > > Gerardo > > > > > Great, i will check that. Thanks again Pavel! Gerardo