Re: Mention column name in error messages - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Mention column name in error messages
Date
Msg-id CAB7nPqS_CEyJzYM+Bi64hJzT6dEPCdKLuArnQBi9hst5Gv_hsw@mail.gmail.com
Whole thread Raw
In response to Re: Mention column name in error messages  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Nov 5, 2016 at 4:15 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The callback is "live" the instant you assign to error_context_stack;
> any data it depends on had better be valid before that.  In this case
> you're effectively depending on the assumption that
> RelationGetRelationName can't throw an error.

Argh, that's obvious. Thanks for the notice.
-- 
Michael



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Password identifiers, protocol aging and SCRAM protocol
Next
From: Alvaro Herrera
Date:
Subject: Re: [COMMITTERS] pgsql: pg_xlogdump: Add NLS