Re: Retrieving variable names from ids in pl_exec.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Retrieving variable names from ids in pl_exec.c
Date
Msg-id 2867.1306880098@sss.pgh.pa.us
Whole thread Raw
In response to Retrieving variable names from ids in pl_exec.c  (Dimitris Karampinas <dkarampin@gmail.com>)
List 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 by date:

Previous
From: Nicolas Barbier
Date:
Subject: Re: Please test peer (socket ident) auth on *BSD
Next
From: Tom Lane
Date:
Subject: Re: Fix for GiST penalty