pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gordon Clarke <gordonc@adf-serials.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Functions in Postgres
Date: Fri, 12 Apr 2002 06:59:53 +1000 (EST)
Message-ID: <Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.30.0204102052550.684-100000@peter.localdomain>

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
-------------+------------------------------------------------------------




view thread (11+ messages)  latest in thread

Message-ID: <Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain>
Permalink:  ../Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: gordonc@adf-serials.com, peter_e@gmx.net
  Subject: Re: Functions in Postgres
  In-Reply-To: <Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain>
  References: <Pine.LNX.4.30.0204102052550.684-100000@peter.localdomain> <Pine.LNX.4.21.0204120656530.30360-100000@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox