Skip site navigation (1) Skip section navigation (2)

Re: plperl - put schema-name in $_TD

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Adam Sjøgren <adsj(at)novozymes(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: plperl - put schema-name in $_TD
Date: 2006-05-25 15:55:58
Message-ID: 13489.1148572558@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> plpython and pltcl don't have relname, while only pltcl has relatts. Is 
> relatts useful? should we provide it everywhere?

Hm.  It is not particularly useful in plpgsql at the moment, because of
the lack of any way to reference columns dynamically.  So that's
probably why it's not there in plpgsql, and then the other languages
copied that decision even though they can do dynamic references.

You'd have to work out appropriate datastructure idioms for the other
languages, which might not be obvious at first glance.

It doesn't seem very high priority to me, because no one's yet asked for
it ...

> I propose to add relname to plpython and pltcl, and relschema to all 
> (mutatis mutandis w.r.t. names).

Works for me.

			regards, tom lane

In response to

pgsql-patches by date

Next:From: Greg Sabino MullaneDate: 2006-05-25 16:06:12
Subject: Re: plperl - put schema-name in $_TD
Previous:From: Jeremy DrakeDate: 2006-05-25 15:43:01
Subject: psql \copy warning

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group