Re: Mention column name in error messages

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kuntal Ghosh <kuntalghosh(dot)2007(at)gmail(dot)com>, Franck Verrot <franck(at)verrot(dot)fr>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Mention column name in error messages
Date: 2016-11-05 12:57:47
Message-ID: CAB7nPqS_CEyJzYM+Bi64hJzT6dEPCdKLuArnQBi9hst5Gv_hsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 5, 2016 at 4:15 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-11-05 13:19:40 Re: [COMMITTERS] pgsql: pg_xlogdump: Add NLS
Previous Message Michael Paquier 2016-11-05 12:36:06 Re: Password identifiers, protocol aging and SCRAM protocol