pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <janwieck@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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 15:12:01 -0400 (EDT)
Message-ID: <200204121912.g3CJC1007563@saturn.janwieck.net> (raw)
In-Reply-To: <29462.1018637891@sss.pgh.pa.us>

Tom Lane wrote:
> 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.

    Absolutely. It's only all the SPI_* crap and parameter/result
    conversion.  Inside Tcl it's calm like in  the  center  of  a
    hurricane, the problem is just getting in and out...


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #





view thread (11+ messages)

Message-ID: <200204121912.g3CJC1007563@saturn.janwieck.net>
Permalink:  ../200204121912.g3CJC1007563@saturn.janwieck.net/
Also on:    postgresql.org/message-id/200204121912.g3CJC1007563@saturn.janwieck.net

 · 

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: janwieck@yahoo.com, tgl@sss.pgh.pa.us, peter_e@gmx.net, gordonc@adf-serials.com
  Subject: Re: Functions in Postgres
  In-Reply-To: <200204121912.g3CJC1007563@saturn.janwieck.net>

* 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