Re: Inconsistency in plpgsql's error context reports

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Inconsistency in plpgsql's error context reports
Дата
Msg-id 16763.1513014382@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Inconsistency in plpgsql's error context reports  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Inconsistency in plpgsql's error context reports  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Custom compression methods
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Mention ordered datums in PartitionBoundInfoData comment