pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <janwieck@yahoo.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Gordon Clarke <gordonc@adf-serials.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Functions in Postgres
Date: Fri, 12 Apr 2002 14:58:11 -0400
Message-ID: <29462.1018637891@sss.pgh.pa.us> (raw)
In-Reply-To: <200204121846.g3CIk2U07447@saturn.janwieck.net>
References: <200204121846.g3CIk2U07447@saturn.janwieck.net>

Jan Wieck <janwieck@yahoo.com> writes:
> Tom Lane wrote:
>> Not since about Tcl 8.0.

>     You're right, not Tcl's fault. Noone changed PL/Tcl to use it
>     though. It  still  does  Tcl_CreateCommand(),  which  is  the
>     backward   compatibility   pure   string  interface  wrapping
>     technology. :-)

I could be mistaken, but I thought Tcl would still reduce the function
text to bytecode behind-the-scenes.

We are losing with unnecessary text conversions in a number of places in
pltcl, but I think it's just in parameter passing at pltcl function
entry/exit and calls to the special Tcl commands provided by pltcl.
If you're executing regular Tcl commands inside a pltcl function,
I think you still will get benefit from Tcl 8's speedups.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <29462.1018637891@sss.pgh.pa.us>
Permalink:  ../29462.1018637891@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29462.1018637891@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, janwieck@yahoo.com, peter_e@gmx.net, gordonc@adf-serials.com
  Subject: Re: Functions in Postgres
  In-Reply-To: <29462.1018637891@sss.pgh.pa.us>

* 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