From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Unified logging system for command-line programs |
Date: | 2019-01-03 18:54:28 |
Message-ID: | a7c07b9c-8aa4-f9bb-e9eb-30111b732645@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 03/01/2019 19:03, Andres Freund wrote:
>> My goal was to make logging smaller and more
>> compact. Two, I think tying error reporting to flow control does not
>> always work well and leads to bad code and a bad user experience.
>
> Not sure I can buy that, given that we seem to be doing quite OK in the backend.
Consider the numerous places where we do elog(LOG) for an *error*
because we don't want to jump away.
>> Relatedly, rewriting all the frontend programs to exception style would
>> end up being a 10x project to rewrite everything for no particular
>> benefit. Going from 8 or so APIs to 2 is already an improvement, I
>> think. If someone wants to try going further, it can be considered, but
>> it would be an entirely different project.
>
> Why would it be 10x the effort,
Because you would have to rewrite all the programs to handle elog(ERROR)
jumping somewhere else.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Jerry Sievers | 2019-01-03 18:55:34 | Re: pg_upgrade: Pass -j down to vacuumdb |
Previous Message | Andrey Borodin | 2019-01-03 18:47:13 | Re: GiST VACUUM |