Received: from mail002.syd.optusnet.com.au (mail002.syd.optusnet.com.au [203.2.75.245]) by postgresql.org (Postfix) with ESMTP id 7612D4762B7 for ; Thu, 11 Apr 2002 16:59:32 -0400 (EDT) Received: from wdcax18-002.dialup.optusnet.com.au (wdcax18-002.dialup.optusnet.com.au [198.142.250.2]) by mail002.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g3BKxK711603; Fri, 12 Apr 2002 06:59:20 +1000 Date: Fri, 12 Apr 2002 06:59:53 +1000 (EST) From: Gordon Clarke X-Sender: gordonc@localhost.localdomain To: Peter Eisentraut Cc: pgsql-sql@postgresql.org Subject: Re: Functions in Postgres In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200204/181 X-Sequence-Number: 7445 On Wed, 10 Apr 2002, Peter Eisentraut wrote: > Each language handler is free to interpret the source text in its own way. > This has nothing to do with trustedness (is SQL not trusted?). Neither > PL/pgSQL nor PL/Tcl involve a compilation step, although PL/pgSQL does > some optimizations internally that could be called compilation. > > Is this question just out of random interest, or are you really asking > something like are functions fast? I was asking to see if there was any speed penalty with coding a fn in SQL as opposed to PL/pgsql. It appears that there is and from what you've said PL/pgsql is slightly faster than PL/TCL and probably PL/Perl. Am I correct in drawing that conclusion? Thanks for your help. -- Cheers...Gordon -------------+------------------------------------------------------------ ADF Aircraft | Cataloguing the serial numbers of Australian Defence Force Serial | aircraft for all the three series. Numbers | http://www.adf-serials.com -------------+------------------------------------------------------------