Re: Retrieving variable names from ids in pl_exec.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Retrieving variable names from ids in pl_exec.c
Дата
Msg-id 2867.1306880098@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Retrieving variable names from ids in pl_exec.c  (Dimitris Karampinas <dkarampin@gmail.com>)
Список pgsql-hackers
Dimitris Karampinas <dkarampin@gmail.com> writes:
> Is there any way to retrieve the actual variable names (as were given 
> during Stored Procedure definition) for the corresponding var_ids in 
> pl/plpgsql/src/pl_exec.c ?

As of 9.0, you could dig through the namespace stack looking for a
match to the dno (datum number).  In earlier releases, no chance because
that data structure wasn't kept around after compile.
        regards, tom lane


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

Предыдущее
От: Nicolas Barbier
Дата:
Сообщение: Re: Please test peer (socket ident) auth on *BSD
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fix for GiST penalty