Re: Determine the name of the calling function - Mailing list pgsql-novice

From Tom Lane
Subject Re: Determine the name of the calling function
Date
Msg-id 10554.1359595041@sss.pgh.pa.us
Whole thread Raw
In response to Re: Determine the name of the calling function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
I wrote:
> Curiously, the behavior doesn't seem to be totally consistent --- when I
> run the same case again, I get an additional line of context:

> regression=# select f2();
> NOTICE:  SQL statement "SELECT 1/0"
> PL/pgSQL function f1() line 5 at assignment
> PL/pgSQL function f2() line 3 at RETURN
> CONTEXT:  PL/pgSQL function f2() line 3 at RETURN
>  f2
> ----
>   0
> (1 row)

> That seems like a bug ...

FYI, a fix for this has been committed and will be in 9.2.3.
The code will now consistently include that first line of context.

            regards, tom lane


pgsql-novice by date:

Previous
From: Steve Crawford
Date:
Subject: Re: to_timestamp behaviour
Next
From: Tom Lane
Date:
Subject: Re: to_timestamp behaviour