Re: [GENERAL] How to get an exception detail in a function called in exception handler - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] How to get an exception detail in a function called in exception handler
Date
Msg-id 19259.1485274420@sss.pgh.pa.us
Whole thread Raw
In response to [GENERAL] How to get an exception detail in a function called in exception handler  (Shakti Singh <shakti.0123@gmail.com>)
Responses Re: [GENERAL] How to get an exception detail in a function called inexception handler
List pgsql-general
Shakti Singh <shakti.0123@gmail.com> writes:
> In oracle sqlcode and sqlerrm can be accessed in a function called from an
> exception block.
> How do I do this in PostgreSQL

In PG those are local variables within an exception block.  You'd have to
pass their values to the error-logging function explicitly.

            regards, tom lane


pgsql-general by date:

Previous
From: Shakti Singh
Date:
Subject: [GENERAL] How to get an exception detail in a function called in exception handler
Next
From: Shakti Singh
Date:
Subject: Re: [GENERAL] How to get an exception detail in a function called inexception handler