On 12/10/12 4:23 PM, Peter Geoghegan wrote:
> Well, this is an area that the standard doesn't have anything to say
> about. The standard defines errcodes, but not what fields they make
> available. I suppose you could say that the patch proposes that they
> become a Postgres extension to the standard.
The standard certainly does define extra fields for errors; see <get
diagnostics statement>. We have a GET DIAGNOSTICS statement in
PL/pgSQL, so there is certainly precedent for all of this.