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 04:45:25
Message-ID: CAB7nPqS95SZ2sKs14chHH44JiW3b79-XojqLXWZ0uyFTrAeBAA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-03-08 04:51:01 Re: Badly designed error reporting code in controldata_utils.c
Previous Message Haribabu Kommi 2016-03-08 04:30:16 Re: pam auth - add rhost item