Re: plperl - put schema-name in $_TD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plperl - put schema-name in $_TD
Дата
Msg-id 13489.1148572558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plperl - put schema-name in $_TD  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Binary COPY for psql
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: plperl - put schema-name in $_TD