Re: Badly designed error reporting code in controldata_utils.c

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Badly designed error reporting code in controldata_utils.c
Date: 2016-03-08 05:23:28
Message-ID: CAB7nPqS0zX6L3DoGYTi4_7TMXVzjqSGswMRRcXtzpsJe=aC3kg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 8, 2016 at 1:51 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> On 2016-03-08 13:45:25 +0900, Michael Paquier wrote:
>> On Mon, Mar 7, 2016 at 10:26 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>> > FWIW I'm considering implementing elog/ereport properly for the
>> > frontend. We've grown several hacks around that not being present, and
>> > I think those by now have a higher aggregate complexity than a proper
>> > implementation would have.
>>
>> That would be handy. And this is are going to need something like
>> callbacks to allow frontend applications how to apply elevel. Take for
>> example pg_rewind, it has an interface with DEBUG and PROGRESS level
>> directly embedded with FATAL controlled by user-defined options.
>
> What does "directly embedded with FATAL" mean?

Incorrect words. I just mean that there is a central code path used by
DEBUG and FATAL in this case, and DEBUG is controlled by a user-side
switch, meaning that if we want to get into something aimed at being
used by any in-core or community frontend clients, we are going to
need something carefully designed.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tsunakawa, Takayuki 2016-03-08 05:40:57 Re: [HACKERS] How can we expand PostgreSQL ecosystem?
Previous Message Andres Freund 2016-03-08 04:51:01 Re: Badly designed error reporting code in controldata_utils.c