Re: PL/Tcl implementation

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: fschmidt <fschmidt(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Tcl implementation
Date: 2008-02-01 02:16:09
Message-ID: 20080201021609.GD14696@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

fschmidt escribió:
>
> Why doesn't the PL/Tcl (and PL/Python) implementation use the SPI functions?
> For example pltcl_set_tuple_values() calls NameStr() instead of SPI_fname()
> and heap_getattr() instead of SPI_getbinval(). Why? This makes the code
> impossible to follow for someone who is not familiar with the postgres
> source and has only read the online documentation.

If you are reading the PL/Tcl source (i.e. the Postgres source, really),
you should definitely be using a source code cross-referencing system;
be it doxygen, or cscope, glimpse, or whatever tool fits the bill. If
you cannot find out at a keystroke where to find the definition of
NameStr() you are doomed [to take a lot longer to understand what's
going on].

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chander Ganesan 2008-02-01 02:19:56 Re: Log file permissions?
Previous Message Joshua D. Drake 2008-02-01 01:41:44 Re: Is PostGreSql's Data storage mechanism "inferior"?