pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Inconsistency in plpgsql's error context reports
Date: Mon, 11 Dec 2017 12:46:22 -0500
Message-ID: <16763.1513014382@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYkeOcbg415LURWXmM-GdpRzvkM_sOjmL-C1-Cxz9RjWQ@mail.gmail.com>
References: <31545.1512924904@sss.pgh.pa.us>
	<CA+TgmoYkeOcbg415LURWXmM-GdpRzvkM_sOjmL-C1-Cxz9RjWQ@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Dec 10, 2017 at 11:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There seem to be two ways we could look at this.  One is that the
>> new test case just needs to be rejiggered to avoid unstable output
>> ("\set VERBOSITY terse" would be the easiest way).  But there is
>> also room to argue that it's bad that plpgsql produces error reports
>> that vary depending on the phase of the moon, which is pretty much
>> what this would look like in the field --- cache flushes will occur
>> unpredictably in most application environments.

> I am inclined toward the latter view.

Yeah, me too.  I'll see about patching exec_eval_simple_expr() to
provide a context line that matches SPI's.  Seems like a HEAD-only
change though, as this will result in visible behavior change in
the typical case.

			regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <16763.1513014382@sss.pgh.pa.us>
Permalink:  ../16763.1513014382@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16763.1513014382@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: Inconsistency in plpgsql's error context reports
  In-Reply-To: <16763.1513014382@sss.pgh.pa.us>
  References: <31545.1512924904@sss.pgh.pa.us> <CA+TgmoYkeOcbg415LURWXmM-GdpRzvkM_sOjmL-C1-Cxz9RjWQ@mail.gmail.com> <16763.1513014382@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox