Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D85A52E004B for ; Tue, 4 Dec 2007 09:23:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 60136-02 for ; Tue, 4 Dec 2007 09:23:01 -0400 (AST) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by postgresql.org (Postfix) with ESMTP id 790362E0071 for ; Tue, 4 Dec 2007 09:23:12 -0400 (AST) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id lB4DN5v6098598; Tue, 4 Dec 2007 15:23:05 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id lB4DN5sS098597; Tue, 4 Dec 2007 15:23:05 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: "Pavel Stehule" Subject: Re: Calling functions from within pl/pgsql Date: Tue, 4 Dec 2007 15:23:04 +0200 User-Agent: KMail/1.9.7 Cc: pgsql-sql@postgresql.org References: <200712041416.50322.achill@matrix.gatewaynet.com> <162867790712040459s6ee86399h5dac46cc20d95e9f@mail.gmail.com> In-Reply-To: <162867790712040459s6ee86399h5dac46cc20d95e9f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200712041523.05011.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/6 X-Sequence-Number: 29698 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 04 December 2007 14:59:43 =CE=BF/=CE=B7 Pa= vel Stehule =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On 04/12/2007, Achilleas Mantzios wrote: > > I noticed that in pl/pgsql simply > > result :=3D funcname(func,args,...); > > just works. > > Should i rely on it or take it as a coincidence? :) > > You found assignment :). Sure, you can use it. > http://www.postgresql.org/docs/8.2/interactive/plpgsql-statements.html#PL= PG >SQL-STATEMENTS-ASSIGNMENT Sure, i missed the "As explained above, the expression in such a statement is evaluated by mea= ns=20 of an SQL SELECT command sent to the main database engine. The expression=20 must yield a single value." part. Thanx. > > Regards > Pavel Stehule > > > -- > > Achilleas Mantzios > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: explain analyze is your friend =2D-=20 Achilleas Mantzios